Give functions that use printf style formatting GCC format attributes so if incorrect formatting is used the compiler will warn of this.
found & fixed 2x incorrect formatting args.
This commit is contained in:
@@ -625,7 +625,7 @@ int WM_write_file(bContext *C, const char *target, int fileflags, ReportList *re
|
||||
/* send the OnSave event */
|
||||
for (li= G.main->library.first; li; li= li->id.next) {
|
||||
if (strcmp(li->filepath, di) == 0) {
|
||||
BKE_reportf(reports, RPT_ERROR, "Can't overwrite used library '%f'", di);
|
||||
BKE_reportf(reports, RPT_ERROR, "Can't overwrite used library '%.200s'", di);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user