changeset: 2026:5503d460686b
user: Kris Maglione <jg_AT_suckless.org>
date: Thu Mar 22 17:10:23 2007 -0400
summary: Fixed bug in mfatal.
diff -r 00fb9e31716e -r 5503d460686b util.c
--- a/util.c Thu Mar 22 17:00:27 2007 -0400
+++ b/util.c Thu Mar 22 17:10:23 2007 -0400
@@ -32,7 +32,7 @@ void
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);
Received on Thu Mar 22 2007 - 22:13:50 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:22 UTC