aboutsummaryrefslogtreecommitdiff
path: root/editors/sed.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/sed.c')
-rw-r--r--editors/sed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c
index 19e768355..fd9dd1be6 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -1094,7 +1094,7 @@ static void process_files(void)
1094 /* append next_line, read new next_line. */ 1094 /* append next_line, read new next_line. */
1095 } 1095 }
1096 len = strlen(pattern_space); 1096 len = strlen(pattern_space);
1097 pattern_space = realloc(pattern_space, len + strlen(next_line) + 2); 1097 pattern_space = xrealloc(pattern_space, len + strlen(next_line) + 2);
1098 pattern_space[len] = '\n'; 1098 pattern_space[len] = '\n';
1099 strcpy(pattern_space + len+1, next_line); 1099 strcpy(pattern_space + len+1, next_line);
1100 last_gets_char = next_gets_char; 1100 last_gets_char = next_gets_char;