From 144065575fcd5f60eeba7f6bd9b813a8c5c5c997 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net" Date: Tue, 29 Jan 2008 13:44:34 +0000 Subject: [PATCH]: escape strings Max Kellermann --- extensions/libxt_NFLOG.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'extensions/libxt_NFLOG.c') diff --git a/extensions/libxt_NFLOG.c b/extensions/libxt_NFLOG.c index e96878c..1125c37 100644 --- a/extensions/libxt_NFLOG.c +++ b/extensions/libxt_NFLOG.c @@ -112,8 +112,10 @@ static int NFLOG_parse(int c, char **argv, int invert, unsigned int *flags, static void nflog_print(const struct xt_nflog_info *info, char *prefix) { - if (info->prefix[0] != '\0') - printf("%snflog-prefix \"%s\" ", prefix, info->prefix); + if (info->prefix[0] != '\0') { + printf("%snflog-prefix ", prefix); + save_string(info->prefix); + } if (info->group) printf("%snflog-group %u ", prefix, info->group); if (info->len) -- cgit v1.2.3