summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-07-04 18:36:58 +0000
committerRichard M. Stallman <rms@gnu.org>1997-07-04 18:36:58 +0000
commit19f83a581ef26a12d163c68018941faf1bcc43c9 (patch)
treee029a8c4dc9886f91dfbfc0c31df9d662e688a52
parent0f83c154aacab0351691faa4966d4d77ff503ed2 (diff)
downloademacs-19f83a581ef26a12d163c68018941faf1bcc43c9.tar.gz
(overlay_strings): Finish up previous change.
-rw-r--r--src/buffer.c9
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)
{
Lisp_Object tem;
int i;
- char *p;
+ unsigned char *p;
int total = overlay_heads.bytes + overlay_tails.bytes;
if (total > overlay_str_len)
- overlay_str_buf = (char *)xrealloc (overlay_str_buf,
- overlay_str_len = total);
+ {
+ overlay_str_len = total;
+ overlay_str_buf = (unsigned char *)xrealloc (overlay_str_buf,
+ total);
+ }
p = overlay_str_buf;
for (i = overlay_tails.used; --i >= 0;)
{