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:
2010-12-04 11:44:56 +00:00
parent 471d304df1
commit 0271ad6322
13 changed files with 49 additions and 21 deletions

View File

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