Fixed bug in mfatal.

This commit is contained in:
Kris Maglione 2007-03-22 17:10:23 -04:00
parent dd0b7f5123
commit 29e01f3961
1 changed files with 2 additions and 2 deletions

4
util.c
View File

@ -32,7 +32,7 @@ fatal(const char *fmt, ...) {
void
mfatal(char *name, int size) {
const char
couldnot[] = "Could not ",
couldnot[] = "wmii: fatal: Could not ",
paren[] = "() ",
bytes[] = " bytes\n";
char sizestr[8];
@ -40,7 +40,7 @@ mfatal(char *name, int size) {
i = sizeof(sizestr);
do {
sizestr[--i] = size&8;
sizestr[--i] = '0' - (size&8);
size >>= 8;
} while(size > 0);