summaryrefslogtreecommitdiffstats
path: root/plugins/check_http.c
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-08-18 17:16:00 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-08-18 17:16:00 (GMT)
commit22519bced6235c1c6cdb81d59783dd8fe1208461 (patch)
tree0df971bb8360f6f7f67892016456e5e3c8239376 /plugins/check_http.c
parentebb5572af3aa518ec143e1a099ed5070855e3076 (diff)
downloadmonitoring-plugins-22519bced6235c1c6cdb81d59783dd8fe1208461.tar.gz
check_http: Use xasprintf instead of asprintf
Diffstat (limited to 'plugins/check_http.c')
-rw-r--r--plugins/check_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 56e87bb..ea7a673 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -1098,7 +1098,7 @@ check_http (void)
1098 if(output_header_search[sizeof(output_header_search)-1]!='\0') { 1098 if(output_header_search[sizeof(output_header_search)-1]!='\0') {
1099 bcopy("...",&output_header_search[sizeof(output_header_search)-4],4); 1099 bcopy("...",&output_header_search[sizeof(output_header_search)-4],4);
1100 } 1100 }
1101 asprintf (&msg, _("%sheader '%s' not found on '%s://%s:%d%s', "), msg, output_header_search, use_ssl ? "https" : "http", host_name ? host_name : server_address, server_port, server_url); 1101 xasprintf (&msg, _("%sheader '%s' not found on '%s://%s:%d%s', "), msg, output_header_search, use_ssl ? "https" : "http", host_name ? host_name : server_address, server_port, server_url);
1102 result = STATE_CRITICAL; 1102 result = STATE_CRITICAL;
1103 } 1103 }
1104 } 1104 }