[nagiosplug] Make GCC happy
Thomas Guyot-Sionnest
dermoth at users.sourceforge.net
Wed Sep 7 05:35:42 CEST 2011
Module: nagiosplug
Branch: maint-1.4.15
Commit: 055b2570eddff9a312dc1445bb7de4a6d7c4887d
Author: Thomas Guyot-Sionnest <dermoth at aei.ca>
Date: Tue Sep 6 23:20:21 2011 -0400
URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=055b257
Make GCC happy
It won't trust us about msg containing no format string, and fail miserably
when compiled with -Werror=format-security. Reported by spy6 on IRC.
---
plugins/check_radius.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/plugins/check_radius.c b/plugins/check_radius.c
index 61d84fb..c2c93ee 100644
--- a/plugins/check_radius.c
+++ b/plugins/check_radius.c
@@ -211,7 +211,7 @@ main (int argc, char **argv)
if (result == OK_RC)
die (STATE_OK, _("Auth OK"));
(void)snprintf(msg, sizeof(msg), _("Unexpected result code %d"), result);
- die (STATE_UNKNOWN, msg);
+ die (STATE_UNKNOWN, "%s", msg);
}
More information about the Commits
mailing list