From 96a5bb8c085d7d78244867b16d97eb76286f8ad4 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Mon, 4 Jun 2007 20:22:51 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1133 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clientgame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index e6b5ac2c..351ffdc5 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -43,7 +43,7 @@ void newname(char *name) { if(name[0]) { - if(name[0] == ' ') return; + if(isspace(name[0]) || !isprint(name[0])) return; c2sinit = false; s_strncpy(player1->name, name, MAXNAMELEN+1); }