more typesafe
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2043
This commit is contained in:
parent
1c44f564ca
commit
5ed600377f
1 changed files with 2 additions and 2 deletions
|
@ -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<unsigned char*>(args)))
|
||||
args++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue