• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

作図ソフト dia の改良版


Commit MetaInfo

Revision3a3c37d49e419fb584cf8f53b4cc511987256180 (tree)
Time2014-10-02 07:14:41
AuthorHans Breuer <hans@breu...>
CommiterHans Breuer

Log Message

[warningectomy] format string is not a string literal (potentially insecure)

plug-ins.c:234:51: warning: format string is not a string literal (potentially insecure) [-Wformat-security]

message(_("%s Plugin could not be unloaded"), info->name);
~

Change Summary

Incremental Difference

--- a/lib/plug-ins.c
+++ b/lib/plug-ins.c
@@ -231,7 +231,8 @@ dia_plugin_unload(PluginInfo *info)
231231 return;
232232
233233 if (!dia_plugin_can_unload(info)) {
234- message(_("%s Plugin could not be unloaded"), info->name);
234+ /* calling this function w/o check first is a programmer's error */
235+ g_warning ("%s plugin could not be unloaded", info->name);
235236 return;
236237 }
237238 /* perform plugin cleanup */