From 7be3c2fcbfe2335d069a5c13b0ddf74b69383c46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 6 May 2012 22:23:58 +0200 Subject: [PATCH] read: Avoid `void *' pointer arithmetic. * libguile/read.c (read_complete_token): Make `new_buf' a `char *' to avoid pointer arithmetic on `void *'. --- libguile/read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libguile/read.c b/libguile/read.c index 6ec38f35b..12b4c56d8 100644 --- a/libguile/read.c +++ b/libguile/read.c @@ -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);