diff options
| author | Richard M. Stallman | 1997-07-04 18:36:58 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-04 18:36:58 +0000 |
| commit | 9f4d7cde2cbb636d767da922bdf9789da3515a32 (patch) | |
| tree | b8ca32ac2896d67e8a8bf9d85319e36410399a7b /src/buffer.c | |
| parent | e6354b3ed48c8c0dedf18c1942399f6d34a6383d (diff) | |
| download | emacs-9f4d7cde2cbb636d767da922bdf9789da3515a32.tar.gz emacs-9f4d7cde2cbb636d767da922bdf9789da3515a32.zip | |
(overlay_strings): Finish up previous change.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c index c2159627eb5..7b33c71daef 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -2256,12 +2256,15 @@ overlay_strings (pos, w, pstr) | |||
| 2256 | { | 2256 | { |
| 2257 | Lisp_Object tem; | 2257 | Lisp_Object tem; |
| 2258 | int i; | 2258 | int i; |
| 2259 | char *p; | 2259 | unsigned char *p; |
| 2260 | int total = overlay_heads.bytes + overlay_tails.bytes; | 2260 | int total = overlay_heads.bytes + overlay_tails.bytes; |
| 2261 | 2261 | ||
| 2262 | if (total > overlay_str_len) | 2262 | if (total > overlay_str_len) |
| 2263 | overlay_str_buf = (char *)xrealloc (overlay_str_buf, | 2263 | { |
| 2264 | overlay_str_len = total); | 2264 | overlay_str_len = total; |
| 2265 | overlay_str_buf = (unsigned char *)xrealloc (overlay_str_buf, | ||
| 2266 | total); | ||
| 2267 | } | ||
| 2265 | p = overlay_str_buf; | 2268 | p = overlay_str_buf; |
| 2266 | for (i = overlay_tails.used; --i >= 0;) | 2269 | for (i = overlay_tails.used; --i >= 0;) |
| 2267 | { | 2270 | { |