mirror of
https://github.com/UberGames/rpgxEF.git
synced 2025-02-21 19:41:18 +00:00
fixed error
This commit is contained in:
parent
d44bd2d583
commit
83880795de
2 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ void COM_StripExtension( const char *in, char *out ) {
|
|||
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 *src;
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@ if path doesn't have an extension, then append
|
|||
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;
|
||||
if (dot && (!(slash = strrchr(path, '/')) || slash < dot))
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue