summaryrefslogtreecommitdiff
path: root/gui/DebugMemory.c
diff options
context:
space:
mode:
Diffstat (limited to 'gui/DebugMemory.c')
-rw-r--r--gui/DebugMemory.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/DebugMemory.c b/gui/DebugMemory.c
index 00fa5395..e001057b 100644
--- a/gui/DebugMemory.c
+++ b/gui/DebugMemory.c
@@ -63,7 +63,8 @@ static void UpdateMemViewDlg() {
for (i = 0; i < 16; i++) {
buftext[i] = psxMs8(start + i);
sprintf(bufdata[i], "%.2X", (u8)buftext[i]);
- if ((s8)buftext[i] < 32) buftext[i] = '.';
+ if ((u8)buftext[i] < 32 || (u8)buftext[i] >= 127)
+ buftext[i] = '.';
}
gtk_list_store_append(store, &iter);