[quake3-commits] r1983 - trunk/code/game
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat May 14 10:55:54 EDT 2011
Author: thilo
Date: 2011-05-14 10:55:54 -0400 (Sat, 14 May 2011)
New Revision: 1983
Modified:
trunk/code/game/bg_lib.c
Log:
Make bg_lib.c strchr ANSI-C conformant
Modified: trunk/code/game/bg_lib.c
===================================================================
--- trunk/code/game/bg_lib.c 2011-05-14 14:39:48 UTC (rev 1982)
+++ trunk/code/game/bg_lib.c 2011-05-14 14:55:54 UTC (rev 1983)
@@ -237,7 +237,11 @@
}
string++;
}
- return (char *)0;
+
+ if(c)
+ return NULL;
+ else
+ return string;
}
char *strstr( const char *string, const char *strCharSet ) {
More information about the quake3-commits
mailing list