diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-12-04 14:44:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-12-04 14:44:56 +0300 |
commit | 0271ad6322775de43f0c3f790f070b975861aa7d (patch) | |
tree | 4c2cc979df62437344d13efa69e50c13ca948d8f /source/blender/windowmanager | |
parent | 471d304df1492e95c611b2d5666d7befeac27272 (diff) |
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.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index c4cd0fe99d6..fe0edf18dd1 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -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; } } |