diff --git a/common/wwstd.h b/common/wwstd.h index 03c7d170..5e41f066 100644 --- a/common/wwstd.h +++ b/common/wwstd.h @@ -262,11 +262,12 @@ inline static void _splitpath(const char* path, char* drive, char* dir, char* fn inline static char* strupr(char* str) { + char* ret = str; while (*str != '\0') { *str = toupper(*str); ++str; } - return str; + return ret; } inline static void strrev(char* str)