From 4a07ed8ef0740a3717ec8c619ff65879c415e282 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Tue, 9 May 2000 22:32:01 +0000 Subject: [PATCH] Fixed x /s command. --- debugger/memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debugger/memory.c b/debugger/memory.c index 6ccf6c34359..453e3e0218a 100644 --- a/debugger/memory.c +++ b/debugger/memory.c @@ -262,7 +262,7 @@ void DEBUG_ExamineMemory( const DBG_VALUE *_value, int count, char format ) if (count == 1) count = 256; while (count--) { - if (!DEBUG_READ_MEM_VERBOSE(pnt, &wch, sizeof(wch))) + if (!DEBUG_READ_MEM_VERBOSE(pnt, &wch, sizeof(wch)) || !wch) break; pnt += sizeof(wch); DEBUG_Printf(DBG_CHN_MESG, "%c", (char)wch); @@ -276,7 +276,7 @@ void DEBUG_ExamineMemory( const DBG_VALUE *_value, int count, char format ) if (count == 1) count = 256; while (count--) { - if (!DEBUG_READ_MEM_VERBOSE(pnt, &ch, sizeof(ch))) + if (!DEBUG_READ_MEM_VERBOSE(pnt, &ch, sizeof(ch)) || !ch) break; pnt++; DEBUG_Output(DBG_CHN_MESG, &ch, 1);