diff options
Diffstat (limited to 'plugins/check_dig.c')
-rw-r--r-- | plugins/check_dig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c index 7c39a243..ff160591 100644 --- a/plugins/check_dig.c +++ b/plugins/check_dig.c @@ -97,7 +97,7 @@ main (int argc, char **argv) input_buffer[strcspn (input_buffer, "\r\n")] = '\0'; if (strstr (input_buffer, query_address) == input_buffer) { - asprintf (&output, input_buffer); + output = strdup(input_buffer); result = STATE_OK; } else { @@ -119,7 +119,7 @@ main (int argc, char **argv) result = max_state (result, STATE_WARNING); printf ("%s", input_buffer); if (strlen (output) == 0) - asprintf (&output, 1 + index (input_buffer, ':')); + output = strdup (1 + index (input_buffer, ':')); } (void) fclose (child_stderr); |