From a5d099400fd6f9ad3880dda10f85d2aa36b5ec65 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 29 Jan 2008 13:44:34 +0000 Subject: escape strings Max Kellermann --- extensions/libipt_ULOG.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'extensions/libipt_ULOG.c') diff --git a/extensions/libipt_ULOG.c b/extensions/libipt_ULOG.c index 2e56ab49..eddd79f0 100644 --- a/extensions/libipt_ULOG.c +++ b/extensions/libipt_ULOG.c @@ -155,8 +155,10 @@ static void ULOG_save(const void *ip, const struct xt_entry_target *target) const struct ipt_ulog_info *loginfo = (const struct ipt_ulog_info *) target->data; - if (strcmp(loginfo->prefix, "") != 0) - printf("--ulog-prefix \"%s\" ", loginfo->prefix); + if (strcmp(loginfo->prefix, "") != 0) { + fputs("--ulog-prefix ", stdout); + save_string(loginfo->prefix); + } if (loginfo->nl_group != ULOG_DEFAULT_NLGROUP) { printf("--ulog-nlgroup "); -- cgit v1.2.3