mirror of
https://github.com/UberGames/rpgxEF.git
synced 2024-11-10 07:11:34 +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
|
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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue