cwfs: fix %.*s format in cmd_printconf()
This commit is contained in:
parent
66ab4ac223
commit
b76a78c1a1
1 changed files with 2 additions and 2 deletions
|
@ -529,11 +529,11 @@ cmd_printconf(int, char *[])
|
||||||
if(*p++ != '\n')
|
if(*p++ != '\n')
|
||||||
continue;
|
continue;
|
||||||
if (strncmp(s, "ip", 2) != 0) /* don't print obsolete cmds */
|
if (strncmp(s, "ip", 2) != 0) /* don't print obsolete cmds */
|
||||||
print("%.*s", (int)(p-s), s);
|
print("%.*s", utfnlen(s, p-s), s);
|
||||||
s = p;
|
s = p;
|
||||||
}
|
}
|
||||||
if(p != s)
|
if(p != s)
|
||||||
print("%.*s", (int)(p-s), s);
|
print("%.*s", utfnlen(s, p-s), s);
|
||||||
print("end\n");
|
print("end\n");
|
||||||
|
|
||||||
putbuf(iob);
|
putbuf(iob);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue