diff options
Diffstat (limited to 'src/plugins/ps_extractor.c')
-rw-r--r-- | src/plugins/ps_extractor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/ps_extractor.c b/src/plugins/ps_extractor.c index a11509b..987c76d 100644 --- a/src/plugins/ps_extractor.c +++ b/src/plugins/ps_extractor.c | |||
@@ -170,7 +170,8 @@ EXTRACTOR_ps_extract_method (struct EXTRACTOR_ExtractContext *ec) | |||
170 | while ( (NULL != next) && | 170 | while ( (NULL != next) && |
171 | (0 == strncmp (next, "%%+", strlen ("%%+"))) ) | 171 | (0 == strncmp (next, "%%+", strlen ("%%+"))) ) |
172 | { | 172 | { |
173 | acc = malloc (strlen (line) + strlen (next) - 1); | 173 | if (NULL == (acc = malloc (strlen (line) + strlen (next) - 1))) |
174 | break; | ||
174 | strcpy (acc, line); | 175 | strcpy (acc, line); |
175 | strcat (acc, " "); | 176 | strcat (acc, " "); |
176 | strcat (acc, next + 3); | 177 | strcat (acc, next + 3); |