%c did not work on systems that have their bytes or their words reversed.
This commit is contained in:
parent
4c7e878c6c
commit
d050d88f89
@ -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…
x
Reference in New Issue
Block a user