X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=extensions%2Flibipt_comment.c;h=692acca3307687d084831c558d42cbda4efe8a61;hb=782ed68bce7c9b3cc29eb4351ec13ede40a7ee49;hp=c543fc69dfda9d5f6a308b1a2efcfb9cff697821;hpb=2e293f94e43325cb8cc719e27b43e647842c046d;p=iptables.git diff --git a/extensions/libipt_comment.c b/extensions/libipt_comment.c index c543fc6..692acca 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