From 1f0493d050303d65531b36b2c53039f1ca9222be Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sat, 31 Jan 2004 20:01:01 +0000 Subject: [PATCH] Made goto accept spaces between : and label Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1632 --- src/shell/shell_batch.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shell/shell_batch.cpp b/src/shell/shell_batch.cpp index f5cf388d..4642a2b7 100644 --- a/src/shell/shell_batch.cpp +++ b/src/shell/shell_batch.cpp @@ -125,7 +125,8 @@ again: } while (c!='\n' && n); *cmd_write++=0; if (cmd[0]==':') { - if (strcasecmp(cmd+1,where)==0) return true; + char *nospace = trim(cmd+1); + if (strcasecmp(nospace,where)==0) return true; } if (!n) { delete this;