1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-29 14:30:34 +02:00

read: Avoid `void *' pointer arithmetic.

* libguile/read.c (read_complete_token): Make `new_buf' a `char *' to
  avoid pointer arithmetic on `void *'.
This commit is contained in:
Ludovic Courtès 2012-05-06 22:23:58 +02:00
parent 82171a2ea4
commit 7be3c2fcbf

View file

@ -260,7 +260,7 @@ read_complete_token (SCM port, char *buffer, size_t buffer_size,
} }
else else
{ {
void *new_buf = char *new_buf =
scm_gc_malloc_pointerless (overflow_size + bytes_read, "read"); scm_gc_malloc_pointerless (overflow_size + bytes_read, "read");
memcpy (new_buf, overflow_buffer, overflow_size); memcpy (new_buf, overflow_buffer, overflow_size);