Aren't these supposed to be chars?
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12213 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -93,7 +93,7 @@ const char *MsgCodeToString(int32 code)
|
|||||||
// Used to translate BMessage message codes back to a character
|
// Used to translate BMessage message codes back to a character
|
||||||
// format
|
// format
|
||||||
char string [10];
|
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 & 0x00FF0000) >> 16),
|
||||||
(char)((code & 0x0000FF00) >> 8),
|
(char)((code & 0x0000FF00) >> 8),
|
||||||
(char)((code & 0x000000FF)) );
|
(char)((code & 0x000000FF)) );
|
||||||
@@ -105,7 +105,7 @@ BString MsgCodeToBString(int32 code)
|
|||||||
// Used to translate BMessage message codes back to a character
|
// Used to translate BMessage message codes back to a character
|
||||||
// format
|
// format
|
||||||
char string [10];
|
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 & 0x00FF0000) >> 16),
|
||||||
(char)((code & 0x0000FF00) >> 8),
|
(char)((code & 0x0000FF00) >> 8),
|
||||||
(char)((code & 0x000000FF)) );
|
(char)((code & 0x000000FF)) );
|
||||||
|
|||||||
Reference in New Issue
Block a user