From cf05aa87a9d5cc712bb908598f5969327814eead Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Tue, 19 Aug 2003 17:59:25 +0000 Subject: [PATCH] allowed things like /w/p in commandscanbool Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1189 --- src/misc/support.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc/support.cpp b/src/misc/support.cpp index 31ef5c87..2d087870 100644 --- a/src/misc/support.cpp +++ b/src/misc/support.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: support.cpp,v 1.17 2003-08-17 13:08:05 qbix79 Exp $ */ +/* $Id: support.cpp,v 1.18 2003-08-19 17:59:25 qbix79 Exp $ */ #include #include @@ -90,7 +90,7 @@ bool ScanCMDBool(char * cmd,char * check) { while ((scan=strchr(scan,'/'))) { /* found a / now see behind it */ scan++; - if (strncasecmp(scan,check,c_len)==0 && (scan[c_len]==' ' || scan[c_len]==0)) { + if (strncasecmp(scan,check,c_len)==0 && (scan[c_len]==' ' || scan[c_len]=='/' || scan[c_len]==0)) { /* Found a math now remove it from the string */ memmove(scan-1,scan+c_len,strlen(scan+c_len)+1); trim(scan-1);