diff options
author | Denys Vlasenko | 2010-01-08 09:07:50 +0100 |
---|---|---|
committer | Denys Vlasenko | 2010-01-08 09:07:50 +0100 |
commit | 9037787eaee5efb58fd46f326397193b16b161dd (patch) | |
tree | dfd0e7d93faf711ca7dcf8c7fe0abfb21082e3d3 /editors/sed.c | |
parent | ef3817c6dcbf9270d36b48a0547e507221abce74 (diff) | |
download | busybox-9037787eaee5efb58fd46f326397193b16b161dd.zip busybox-9037787eaee5efb58fd46f326397193b16b161dd.tar.gz |
*: fix places where we were still using malloc/realloc
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors/sed.c')
-rw-r--r-- | editors/sed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c index 19e7683..fd9dd1b 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -1094,7 +1094,7 @@ static void process_files(void) /* append next_line, read new next_line. */ } len = strlen(pattern_space); - pattern_space = realloc(pattern_space, len + strlen(next_line) + 2); + pattern_space = xrealloc(pattern_space, len + strlen(next_line) + 2); pattern_space[len] = '\n'; strcpy(pattern_space + len+1, next_line); last_gets_char = next_gets_char; |