ape: fix wrong write size for _assert()
This commit is contained in:
parent
263251da75
commit
d4e89fe76a
1 changed files with 1 additions and 1 deletions
|
@ -9,9 +9,9 @@ _assert(char *f, unsigned line)
|
||||||
write(2, "assertion failed: file ", 23);
|
write(2, "assertion failed: file ", 23);
|
||||||
for(p = f; *p; p++) continue;
|
for(p = f; *p; p++) continue;
|
||||||
write(2, f, p-f);
|
write(2, f, p-f);
|
||||||
write(2, ":", 7);
|
|
||||||
*--s = '\n';
|
*--s = '\n';
|
||||||
do *--s = line%10 + '0'; while (line /= 10);
|
do *--s = line%10 + '0'; while (line /= 10);
|
||||||
|
*--s = ':';
|
||||||
write(2, s, &buf[20] - s);
|
write(2, s, &buf[20] - s);
|
||||||
abort();
|
abort();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue