mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-29 06:20:30 +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:
parent
82171a2ea4
commit
7be3c2fcbf
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue