Fix compilation error with strict compiler rules

This commit is contained in:
Sergey Sharybin 2015-01-17 00:22:46 +05:00
parent 89e562e19b
commit f65b369f16
Notes: blender-bot 2023-02-14 09:36:38 +01:00
Referenced by issue #43784, Compositing scale node border error
Referenced by issue #43293, Grease pencil crash on vse
1 changed files with 1 additions and 2 deletions

View File

@ -438,8 +438,7 @@ void BLI_cleanup_file(const char *relabase, char *path)
*/
void BLI_filename_make_safe(char *fname)
{
char *invalid = "/\\?%*:|\"<>. ";
char *c;
const char *invalid = "/\\?%*:|\"<>. ";
for (; *fname && (fname = strpbrk(fname, invalid)); fname++) {
*fname = '_';