From 44ee8359ded9a47d445bc2c61daf3dd1db4bbd46 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Fri, 14 Jan 2011 13:58:36 +0100 Subject: Fixed bug in in-synth-cli (reload) Now the number is first parsed (via atoi) and THEN checked if in 0..127 --- synth/in_synth_cli.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/synth/in_synth_cli.cpp b/synth/in_synth_cli.cpp index ece806b..510d93d 100644 --- a/synth/in_synth_cli.cpp +++ b/synth/in_synth_cli.cpp @@ -107,11 +107,9 @@ void do_in_synth_cli() cout << "error: expected program-number, found '"<=0) && (num<128)) - { - num=atoi(params.c_str()); lock_and_load_program(num, programfile[num]); - } else cout << "error: program-number must be one of 0..127" << endl; } -- cgit v1.2.3