summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_comment.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libxt_comment.c')
-rw-r--r--extensions/libxt_comment.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/libxt_comment.c b/extensions/libxt_comment.c
index 0ff0144d..67d7f998 100644
--- a/extensions/libxt_comment.c
+++ b/extensions/libxt_comment.c
@@ -84,7 +84,8 @@ comment_save(const void *ip, const struct xt_entry_match *match)
struct xt_comment_info *commentinfo = (struct xt_comment_info *)match->data;
commentinfo->comment[XT_MAX_COMMENT_LEN-1] = '\0';
- printf("--comment \"%s\" ", commentinfo->comment);
+ printf("--comment ");
+ xtables_save_string((const char *)commentinfo->comment);
}
static struct xtables_match comment_match = {