aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_radius.c
diff options
context:
space:
mode:
authorGravatar Thomas Guyot-Sionnest <dermoth@aei.ca> 2011-09-06 23:20:21 -0400
committerGravatar Thomas Guyot-Sionnest <dermoth@aei.ca> 2011-09-06 23:20:21 -0400
commitf917244ab55917094bfe3bead0e905baad385821 (patch)
treef022af56c32cca382f553ffbd5a2638c4cb23449 /plugins/check_radius.c
parent4d06603060fc1233861b164870f0d3a2e0d8d2eb (diff)
downloadmonitoring-plugins-f917244ab55917094bfe3bead0e905baad385821.tar.gz
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.
Diffstat (limited to 'plugins/check_radius.c')
-rw-r--r--plugins/check_radius.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_radius.c b/plugins/check_radius.c
index 61d84fb8..c2c93eeb 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);
}