diff -ru sbin/ip6fw.orig/ip6fw.c sbin/ip6fw/ip6fw.c --- sbin/ip6fw.orig/ip6fw.c 2004-02-04 15:39:59.000000000 -0200 +++ sbin/ip6fw/ip6fw.c 2004-10-25 20:11:47.000000000 -0200 @@ -231,7 +231,8 @@ { char timestr[30]; - strcpy(timestr, ctime((time_t *)&chain->timestamp)); + strlcpy(timestr, ctime((time_t *)&chain->timestamp), + sizeof(timestr)); *strchr(timestr, '\n') = '\0'; printf("%s ", timestr); } @@ -1359,7 +1360,7 @@ while (fgets(buf, BUFSIZ, f)) { lineno++; - sprintf(linename, "Line %d", lineno); + snprintf(linename, sizeof(linename), "Line %d", lineno); args[0] = linename; if (*buf == '#')