From: Holger Schemel Date: Sat, 3 Jul 2021 11:40:12 +0000 (+0200) Subject: improved handling of command parameters when auto-processing tapes X-Git-Tag: 4.3.0.0~110 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=3f1b421dc4b252437e0c7e8636d63772950460cc;p=rocksndiamonds.git improved handling of command parameters when auto-processing tapes --- diff --git a/src/init.c b/src/init.c index d5120fb2..0a44e0e5 100644 --- a/src/init.c +++ b/src/init.c @@ -5071,7 +5071,8 @@ static void Execute_Command(char *command) strPrefix(command, "autosave ") || strPrefix(command, "autofix ")) { - char *str_ptr = getStringCopy(&command[8]); // read command parameters + char *arg_ptr = strchr(command, ' '); + char *str_ptr = getStringCopy(arg_ptr); // read command parameters global.autoplay_mode = (strPrefix(command, "autoplay") ? AUTOPLAY_MODE_PLAY :