Use a hex value instead of possibly ambiguous 8 bit character
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6023 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
84bc5b9d7d
commit
3891b37010
@ -1249,7 +1249,7 @@ static void print_direntry(const direntry_t* direntry)
|
||||
unsigned char* c=(unsigned char*)direntry;
|
||||
int i;
|
||||
for(i=1;i<11 && c[i] && c[i]!=0xff;i+=2)
|
||||
#define ADD_CHAR(c) {buffer[j] = (c); if (buffer[j] < ' ') buffer[j] = '°'; j++;}
|
||||
#define ADD_CHAR(c) {buffer[j] = (c); if (buffer[j] < ' ') buffer[j] = 0xb0; j++;}
|
||||
ADD_CHAR(c[i]);
|
||||
for(i=14;i<26 && c[i] && c[i]!=0xff;i+=2)
|
||||
ADD_CHAR(c[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user