diff options
Diffstat (limited to 'extensions/libipt_comment.c')
-rw-r--r-- | extensions/libipt_comment.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libipt_comment.c b/extensions/libipt_comment.c index c543fc69..692acca3 100644 --- a/extensions/libipt_comment.c +++ b/extensions/libipt_comment.c @@ -30,7 +30,7 @@ static struct option opts[] = { }; static void -parse_comment(const unsigned char *s, struct ipt_comment_info *info) +parse_comment(const char *s, struct ipt_comment_info *info) { int slen = strlen(s); @@ -38,7 +38,7 @@ parse_comment(const unsigned char *s, struct ipt_comment_info *info) exit_error(PARAMETER_PROBLEM, "COMMENT must be shorter than %i characters", IPT_MAX_COMMENT_LEN); } - strcpy(info->comment, s); + strcpy((char *)info->comment, s); } /* Function which parses command options; returns true if it |