fixed error

This commit is contained in:
Walter Julius Hennecke 2013-06-07 22:16:58 +02:00
parent d44bd2d583
commit 83880795de
2 changed files with 2 additions and 2 deletions

View file

@ -58,7 +58,7 @@ void COM_StripExtension( const char *in, char *out ) {
COM_DefaultExtension COM_DefaultExtension
================== ==================
*/ */
void COM_DefaultExtension (char *path, int maxSize, const char *extension ) { void COM_DefaultExtension (char *path, size_t maxSize, const char *extension ) {
char oldPath[MAX_QPATH]; char oldPath[MAX_QPATH];
char *src; char *src;

View file

@ -115,7 +115,7 @@ if path doesn't have an extension, then append
the specified one (which should include the .) the specified one (which should include the .)
================== ==================
*/ */
void COM_DefaultExtension( char *path, size_t maxSize, const char *extension ) { void COM_DefaultExtension( char *path, int maxSize, const char *extension ) {
const char *dot = strrchr(path, '.'), *slash; const char *dot = strrchr(path, '.'), *slash;
if (dot && (!(slash = strrchr(path, '/')) || slash < dot)) if (dot && (!(slash = strrchr(path, '/')) || slash < dot))
return; return;