HCoop
/
bpt
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82171a2
)
read: Avoid `void *' pointer arithmetic.
author
Ludovic Courtès
<ludo@gnu.org>
Sun, 6 May 2012 20:23:58 +0000
(22:23 +0200)
committer
Ludovic 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
patch
|
blob
|
blame
|
history
diff --git
a/libguile/read.c
b/libguile/read.c
index
6ec38f3
..
12b4c56
100644
(file)
--- 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);