From 3661cae99c2543bdf4f7775a4f5394d7156b8415 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Fri, 1 Apr 2005 04:03:11 +0000 Subject: [PATCH] Aren't these supposed to be chars? git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12213 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/Utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/servers/app/Utils.cpp b/src/servers/app/Utils.cpp index f33a6b7d16..3e883e2e26 100644 --- a/src/servers/app/Utils.cpp +++ b/src/servers/app/Utils.cpp @@ -93,7 +93,7 @@ const char *MsgCodeToString(int32 code) // Used to translate BMessage message codes back to a character // format char string [10]; - sprintf(string,"'%x%x%x%x'",(char)((code & 0xFF000000) >> 24), + sprintf(string,"'%c%c%c%c'",(char)((code & 0xFF000000) >> 24), (char)((code & 0x00FF0000) >> 16), (char)((code & 0x0000FF00) >> 8), (char)((code & 0x000000FF)) ); @@ -105,7 +105,7 @@ BString MsgCodeToBString(int32 code) // Used to translate BMessage message codes back to a character // format char string [10]; - sprintf(string,"'%x%x%x%x'",(char)((code & 0xFF000000) >> 24), + sprintf(string,"'%c%c%c%c'",(char)((code & 0xFF000000) >> 24), (char)((code & 0x00FF0000) >> 16), (char)((code & 0x0000FF00) >> 8), (char)((code & 0x000000FF)) );