Browse Source

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.
Thomas Guyot-Sionnest 14 năm trước cách đây
mục cha
commit
f917244ab5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      plugins/check_radius.c

+ 1 - 1
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);
 }