Fix by Charles Lindsey
This commit is contained in:
parent
71da2cdda9
commit
29e457c381
|
@ -89,7 +89,7 @@ va_list ap;
|
||||||
longflag = 1;
|
longflag = 1;
|
||||||
}
|
}
|
||||||
else kind = *format;
|
else kind = *format;
|
||||||
if (kind != 'c')
|
if (kind != 'c' && kind != '[')
|
||||||
while (isspace (ic))
|
while (isspace (ic))
|
||||||
ic = getc(iop);
|
ic = getc(iop);
|
||||||
done_some = 0; /* nothing yet */
|
done_some = 0; /* nothing yet */
|
||||||
|
@ -214,7 +214,7 @@ va_list ap;
|
||||||
{ register char *p;
|
{ register char *p;
|
||||||
if (do_assign)
|
if (do_assign)
|
||||||
p = va_arg(ap, char *);
|
p = va_arg(ap, char *);
|
||||||
while (width-- && !isspace (ic) && ic > 0 &&
|
while (width-- && ic > 0 &&
|
||||||
(Xtable[ic] ^ reverse)) {
|
(Xtable[ic] ^ reverse)) {
|
||||||
if (do_assign)
|
if (do_assign)
|
||||||
*p++ = (char) ic;
|
*p++ = (char) ic;
|
||||||
|
|
Loading…
Reference in a new issue