summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/db_interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/i386/i386/db_interface.c b/i386/i386/db_interface.c
index b8968de..bd43b1f 100644
--- a/i386/i386/db_interface.c
+++ b/i386/i386/db_interface.c
@@ -315,11 +315,12 @@ db_read_bytes(
if (task == TASK_NULL)
task = db_current_task();
while (--size >= 0) {
- if (addr++ < VM_MIN_KERNEL_ADDRESS && task == TASK_NULL) {
+ if (addr < VM_MIN_KERNEL_ADDRESS && task == TASK_NULL) {
db_printf("\nbad address %x\n", addr);
db_error(0);
/* NOTREACHED */
}
+ addr++;
*data++ = *src++;
}
return;