diff options
Diffstat (limited to 'regexp.c')
-rw-r--r-- | regexp.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -50,7 +50,6 @@ extern int replace_match(char *haystack, char *needle, char *newNeedle, int igno | |||
50 | } while (regexec(re, s, FALSE, ignoreCase) == TRUE); | 50 | } while (regexec(re, s, FALSE, ignoreCase) == TRUE); |
51 | /* copy stuff from after the match */ | 51 | /* copy stuff from after the match */ |
52 | while ( (*d++ = *s++) ) {} | 52 | while ( (*d++ = *s++) ) {} |
53 | d[-1] = '\n'; | ||
54 | d[0] = '\0'; | 53 | d[0] = '\0'; |
55 | strcpy(haystack, buf); | 54 | strcpy(haystack, buf); |
56 | } | 55 | } |