diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index 2029383dec8..2af75e3c471 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -1937,7 +1937,8 @@ allocate_string_data (struct Lisp_String *s, | |||
| 1937 | s->size_byte = nbytes; | 1937 | s->size_byte = nbytes; |
| 1938 | s->data[nbytes] = '\0'; | 1938 | s->data[nbytes] = '\0'; |
| 1939 | #ifdef GC_CHECK_STRING_OVERRUN | 1939 | #ifdef GC_CHECK_STRING_OVERRUN |
| 1940 | memcpy (data + needed, string_overrun_cookie, GC_STRING_OVERRUN_COOKIE_SIZE); | 1940 | memcpy ((char *) data + needed, string_overrun_cookie, |
| 1941 | GC_STRING_OVERRUN_COOKIE_SIZE); | ||
| 1941 | #endif | 1942 | #endif |
| 1942 | 1943 | ||
| 1943 | /* If S had already data assigned, mark that as free by setting its | 1944 | /* If S had already data assigned, mark that as free by setting its |