all repos — mgba @ 732e29e3c643b35fa27ba9df9db17303ca28018c

mGBA Game Boy Advance Emulator

Fix argument number errors
Jeffrey Pfau jeffrey@endrift.com
Fri, 24 Oct 2014 01:14:08 -0700
commit

732e29e3c643b35fa27ba9df9db17303ca28018c

parent

86003496b0af95e897ab4ceea86e8d32efe01d75

1 files changed, 2 insertions(+), 3 deletions(-)

jump to
M src/debugger/cli-debugger.csrc/debugger/cli-debugger.c

@@ -518,11 +518,10 @@ printf("Parse error\n");

_DVFree(dv); return false; } - } else { - printf("Wrong number of arguments"); } } else if (firstSpace) { - printf("Wrong number of arguments"); + printf("Wrong number of arguments\n"); + return false; } _debuggerCommands[i].command(debugger, dv); _DVFree(dv);