summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-10-19 19:15:42 -0700
committerMichael Pavone <pavone@retrodev.com>2015-10-19 19:15:42 -0700
commit70a4bf6d6b7c79c936e96fc8e3cceb96c125695a (patch)
tree70d421f6d54640ac1c043ef3c3d566ca31ea9e65
parent7e4942b9fbc22c05191e0b1c4b1266d594895bbf (diff)
Fix handling of formatting character for 68K debug command p
-rw-r--r--debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug.c b/debug.c
index 9898367..0b79c83 100644
--- a/debug.c
+++ b/debug.c
@@ -656,7 +656,7 @@ int run_debugger_command(m68k_context *context, char *input_buf)
break;
case 'p':
format_char = 0;
- for(int i = 2; input_buf[i] != 0 && input_buf[i] != ' '; i++) {
+ for(int i = 1; input_buf[i] != 0 && input_buf[i] != ' '; i++) {
if (input_buf[i] == '/') {
format_char = input_buf[i+1];
break;