diff options
Diffstat (limited to 'plugins/popen.c')
| -rw-r--r-- | plugins/popen.c | 4 |
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; |
