%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
|
else
|
||||||
if (*pf == 'c') {
|
if (*pf == 'c') {
|
||||||
cbuf[0] = * (char *) pa;
|
cbuf[0] = * (int *) pa;
|
||||||
cbuf[1] = '\0';
|
cbuf[1] = '\0';
|
||||||
pa += sizeof(int);
|
pa += sizeof(int);
|
||||||
arg = &cbuf[0];
|
arg = &cbuf[0];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user