From 3ce2f8ac4c06bf64c43e5ae138b903310927ac79 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 6 Feb 2011 21:47:56 -0800 Subject: [PATCH] * ralloc.c: conform to C89 pointer rules --- src/ChangeLog | 1 + src/ralloc.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 386a9b3a0e5..b10f8fab1cc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -27,6 +27,7 @@ * doprnt.c (doprnt): Likewise. * indent.c (compute_motion): Likewise. * xfont.c (xfont_decode_coding_xlfd): Likewise. + * ralloc.c (resize_bloc): Likewise. * character.c (strwidth): Make its argument const char *, not const unsigned char *, since more callers prefer it that way. All callers changed. diff --git a/src/ralloc.c b/src/ralloc.c index ee8493b89a4..9c601a0ac24 100644 --- a/src/ralloc.c +++ b/src/ralloc.c @@ -648,7 +648,7 @@ resize_bloc (bloc_ptr bloc, SIZE size) else { memmove (bloc->new_data, bloc->data, old_size); - memset (bloc->new_data + old_size, 0, size - old_size); + memset ((char *) bloc->new_data + old_size, 0, size - old_size); *bloc->variable = bloc->data = bloc->new_data; } } @@ -1259,4 +1259,3 @@ r_alloc_init (void) use_relocatable_buffers = 1; } - -- 2.39.5