| File | Lines added | Lines deleted |
|---|---|---|
| src/background.c | 2 | 2 |
| File src/background.c changed (mode: 100644) (index 7dbe2415b..d8df9f6af) | |||
| ... | ... | check_background_jobs(void) | |
| 118 | 118 | ||
| 119 | 119 | if (nread) | if (nread) |
| 120 | 120 | { | { |
| 121 | p->error_buf = (char *) realloc(p->error_buf, sizeof(buf)); | ||
| 121 | p->error_buf = (char *) realloc(p->error_buf, nread + 1); | ||
| 122 | 122 | ||
| 123 | strncat(p->error_buf, buf, sizeof(buf) - 1); | ||
| 123 | strncat(p->error_buf, buf, nread); | ||
| 124 | 124 | } | } |
| 125 | 125 | if (strlen(p->error_buf) > 1) | if (strlen(p->error_buf) > 1) |
| 126 | 126 | { | { |