%c did not work on systems that have their bytes or their words reversed.
This commit is contained in:
parent
5a0140cf3a
commit
7d4d9c5c34
|
@ -55,7 +55,7 @@ _format(buf, fmt, argp)
|
|||
}
|
||||
else
|
||||
if (*pf == 'c') {
|
||||
cbuf[0] = * (char *) pa;
|
||||
cbuf[0] = * (int *) pa;
|
||||
cbuf[1] = '\0';
|
||||
pa += sizeof(int);
|
||||
arg = &cbuf[0];
|
||||
|
|
Loading…
Reference in a new issue