diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c index ad102bea80f..e5b11412aa1 100644 --- a/source/blender/blenlib/intern/fileops.c +++ b/source/blender/blenlib/intern/fileops.c @@ -119,6 +119,8 @@ void BLI_del_slash(char *string) { #endif string[len-1] = '\0'; len--; + } else { + break; } } } diff --git a/source/blender/python/BPY_menus.c b/source/blender/python/BPY_menus.c index 44c2157ad3b..202c4e40b51 100644 --- a/source/blender/python/BPY_menus.c +++ b/source/blender/python/BPY_menus.c @@ -938,7 +938,7 @@ static int bpymenu_GetStatMTime( const char *name, int is_file, time_t * mtime ) struct stat st; int result; -#ifdef win32 +#ifdef WIN32 if (is_file) { result = stat( name, &st ); } else {