aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_ping.c
diff options
context:
space:
mode:
authorGravatar M. Sean Finney <seanius@users.sourceforge.net> 2005-05-03 02:00:51 +0000
committerGravatar M. Sean Finney <seanius@users.sourceforge.net> 2005-05-03 02:00:51 +0000
commit0dd8bfec75d1bfdcf92ae65c006c8e9a6a9b5fe1 (patch)
treed6a79d5e3f7797b4ac5f4d494a8bfe641ae4c596 /plugins/check_ping.c
parent3e5b9b3d3256792f02c53b3bce0cb5ae6c147428 (diff)
downloadmonitoring-plugins-0dd8bfec75d1bfdcf92ae65c006c8e9a6a9b5fe1.tar.gz
setlocale(LC_ALL, "") should be setlocale(LC_NUMERIC, "C") to properly parse the output of ping.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1171 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ping.c')
-rw-r--r--plugins/check_ping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index bd7911d7..74b6fce2 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -71,7 +71,7 @@ main (int argc, char **argv)
int this_result = STATE_UNKNOWN;
int i;
- setlocale (LC_ALL, "");
+ setlocale (LC_NUMERIC, "C");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);