fix for own error, BLI_replace_extension would strip the filename if there wasn't already an extension.

This commit is contained in:
Campbell Barton 2011-11-15 07:35:28 +00:00
parent ab3295db33
commit 697726468e

@ -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;