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')
|
||||
continue;
|
||||
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;
|
||||
}
|
||||
if(p != s)
|
||||
print("%.*s", (int)(p-s), s);
|
||||
print("%.*s", utfnlen(s, p-s), s);
|
||||
print("end\n");
|
||||
|
||||
putbuf(iob);
|
||||
|
|
Loading…
Reference in a new issue