diff options
| author | Richard M. Stallman | 1997-05-15 21:28:03 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-05-15 21:28:03 +0000 |
| commit | 92cf10865610514bce6b9f7df5a3890ea271dfe8 (patch) | |
| tree | 4c94ad28b72712e5d415df7ba8adf710123d3273 /src | |
| parent | 3bdbb9adc6e7d8989dc96dc4b9dc5f242ea05b27 (diff) | |
| download | emacs-92cf10865610514bce6b9f7df5a3890ea271dfe8.tar.gz emacs-92cf10865610514bce6b9f7df5a3890ea271dfe8.zip | |
(Finsert_file_contents): Use xrealloc too.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index e81893c185a..14b1ca0aa0e 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -3386,7 +3386,7 @@ This does code conversion according to the value of\n\ | |||
| 3386 | if (inserted + require + 2 * (total - how_much) > bufsize) | 3386 | if (inserted + require + 2 * (total - how_much) > bufsize) |
| 3387 | { | 3387 | { |
| 3388 | bufsize = inserted + require + 2 * (total - how_much); | 3388 | bufsize = inserted + require + 2 * (total - how_much); |
| 3389 | conversion_buffer = (unsigned char *) realloc (conversion_buffer, bufsize); | 3389 | conversion_buffer = (unsigned char *) xrealloc (conversion_buffer, bufsize); |
| 3390 | } | 3390 | } |
| 3391 | 3391 | ||
| 3392 | /* Convert this batch with results in CONVERSION_BUFFER. */ | 3392 | /* Convert this batch with results in CONVERSION_BUFFER. */ |