commit 29e01f3961044bc39a018303ea6b4460b5b4aa75
parent dd0b7f512331d26795e34763a603f8b8fc0a8722
Author: Kris Maglione <jg@suckless.org>
Date: Thu, 22 Mar 2007 17:10:23 -0400
Fixed bug in mfatal.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/util.c b/util.c
@@ -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);