%c did not work on systems that have their bytes or their words reversed.
This commit is contained in:
parent
5a0140cf3a
commit
7d4d9c5c34
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue