fix for own error, BLI_replace_extension would strip the filename if there wasn't already an extension.
This commit is contained in:
@@ -1414,6 +1414,10 @@ int BLI_replace_extension(char *path, size_t maxlen, const char *ext)
|
||||
}
|
||||
}
|
||||
|
||||
if (path[a] != '.') {
|
||||
a= path_len;
|
||||
}
|
||||
|
||||
if(a + ext_len >= maxlen)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user