Don't call sprintf() with no format string.

This commit is contained in:
Kris Kennaway 2000-07-10 08:22:21 +00:00
parent 0074080b44
commit ada79f6035
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62884

View File

@ -654,7 +654,7 @@ list(ac, av)
if (rulenum != 0 && rulenum != p->pipe_nr)
continue;
if (p->if_name[0] != '\0')
sprintf(buf, p->if_name);
sprintf(buf, "%s", p->if_name);
else if (b == 0)
sprintf(buf, "unlimited");
else if (b >= 1000000)