- Remove Q_strrchr(), replace with standard, portable strrchr()
- Add strrchr() to bg_lib.c, patch by DevHC
This commit is contained in:
parent
3ddc59a3ba
commit
b509d770a7
12 changed files with 27 additions and 29 deletions
|
@ -1022,7 +1022,7 @@ qboolean FS_IsDemoExt(const char *filename, int namelen)
|
|||
char *ext_test;
|
||||
int index, protocol;
|
||||
|
||||
ext_test = Q_strrchr(filename, '.');
|
||||
ext_test = strrchr(filename, '.');
|
||||
if(ext_test && !Q_stricmpn(ext_test + 1, DEMOEXT, ARRAY_LEN(DEMOEXT) - 1))
|
||||
{
|
||||
protocol = atoi(ext_test + ARRAY_LEN(DEMOEXT));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue