summaryrefslogtreecommitdiffstats
path: root/plugins/popen.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-11-19 06:45:18 +0000
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2008-11-19 06:45:18 +0000
commitcaa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe (patch)
tree118fd80cc8ba27ef695a8e8ce409e5d70f4fa451 /plugins/popen.c
parent16f53e0717b60660145388b0feb351628f606211 (diff)
downloadmonitoring-plugins-caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe.tar.gz
Bulk EOL cleanup
$ git diff --ignore-space-change|diffstat 0 files changed git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/popen.c')
-rw-r--r--plugins/popen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/popen.c b/plugins/popen.c
index df00ebeb..a27aecc9 100644
--- a/plugins/popen.c
+++ b/plugins/popen.c
@@ -140,7 +140,7 @@ spopen (const char *cmdstring)
140 /* there cannot be more args than characters */ 140 /* there cannot be more args than characters */
141 argc = strlen (cmdstring) + 1; /* add 1 for NULL termination */ 141 argc = strlen (cmdstring) + 1; /* add 1 for NULL termination */
142 argv = malloc (sizeof(char*)*argc); 142 argv = malloc (sizeof(char*)*argc);
143 143
144 if (argv == NULL) { 144 if (argv == NULL) {
145 printf ("%s\n", _("Could not malloc argv array in popen()")); 145 printf ("%s\n", _("Could not malloc argv array in popen()"));
146 return NULL; 146 return NULL;
@@ -165,7 +165,7 @@ spopen (const char *cmdstring)
165 } 165 }
166 else if (strcspn(str,"'") < strcspn (str, " \t\r\n")) { 166 else if (strcspn(str,"'") < strcspn (str, " \t\r\n")) {
167 /* handle --option='foo bar' strings */ 167 /* handle --option='foo bar' strings */
168 tmp = str + strcspn(str, "'") + 1; 168 tmp = str + strcspn(str, "'") + 1;
169 if (!strstr (tmp, "'")) 169 if (!strstr (tmp, "'"))
170 return NULL; /* balanced? */ 170 return NULL; /* balanced? */
171 tmp += strcspn(tmp,"'") + 1; 171 tmp += strcspn(tmp,"'") + 1;