From 5ed600377f1a20822d9936cb43694a86c1a7ba8d Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Tue, 26 Oct 2004 18:28:51 +0000 Subject: [PATCH] more typesafe Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2043 --- include/shell.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/shell.h b/include/shell.h index 9c16f63f..6f0b083f 100644 --- a/include/shell.h +++ b/include/shell.h @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: shell.h,v 1.7 2004-09-09 18:36:50 qbix79 Exp $ */ +/* $Id: shell.h,v 1.8 2004-10-26 18:28:51 qbix79 Exp $ */ #ifndef SHELL_H_ #define SHELL_H_ @@ -118,7 +118,7 @@ struct SHELL_Cmd { }; static inline void StripSpaces(char*&args) { - while(*args && ((*args == ' ') || (*args == '\t'))) + while(args && *args && isspace(*reinterpret_cast(args))) args++; }