use BLI_strncpy and BLI_snprintf when the size of the string is known.
fix for sequencer unique naming which was missed with string length update.
This commit is contained in:
@@ -251,7 +251,7 @@ static char *find_new_name(char *name)
|
||||
|
||||
if (fop_exists(name)) {
|
||||
for (number = 1; number <= 999; number++) {
|
||||
sprintf(tempname, "%s.%03d", name, number);
|
||||
BLI_snprintf(tempname, sizeof(tempname), "%s.%03d", name, number);
|
||||
if (! fop_exists(tempname)) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user