read: Avoid `void *' pointer arithmetic.
authorLudovic Courtès <ludo@gnu.org>
Sun, 6 May 2012 20:23:58 +0000 (22:23 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 6 May 2012 20:23:58 +0000 (22:23 +0200)
* libguile/read.c (read_complete_token): Make `new_buf' a `char *' to
  avoid pointer arithmetic on `void *'.

libguile/read.c

index 6ec38f3..12b4c56 100644 (file)
@@ -260,7 +260,7 @@ read_complete_token (SCM port, char *buffer, size_t buffer_size,
             }
           else
             {
-             void *new_buf =
+             char *new_buf =
                scm_gc_malloc_pointerless (overflow_size + bytes_read, "read");
 
              memcpy (new_buf, overflow_buffer, overflow_size);