From 29e01f3961044bc39a018303ea6b4460b5b4aa75 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 22 Mar 2007 17:10:23 -0400 Subject: [PATCH] Fixed bug in mfatal. --- util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util.c b/util.c index 3e9e6962..30cb4097 100644 --- 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);