diff options
author | Ludovic Courtès <ludo@gnu.org> | 2009-10-15 01:32:36 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2009-10-15 01:32:36 +0200 |
commit | e7acfa88bc26e7c22b1053e2c807cd4b737cfb63 (patch) | |
tree | 75ca20c9bc7c161a8fd3d5f56a0866841f1cde24 /libguile/gc-malloc.c | |
parent | 31ab99de563027fe2bceb60bbd712407fcaf868e (diff) | |
download | guile-e7acfa88bc26e7c22b1053e2c807cd4b737cfb63.tar.gz |
Use pointer-less memory for `scm_gc_strdup ()'.
* libguile/gc-malloc.c (scm_gc_strndup): Use `GC_MALLOC_ATOMIC ()'
instead of `GC_MALLOC ()'.
Diffstat (limited to 'libguile/gc-malloc.c')
-rw-r--r-- | libguile/gc-malloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/gc-malloc.c b/libguile/gc-malloc.c index e48d2cfd1..a96a186bc 100644 --- a/libguile/gc-malloc.c +++ b/libguile/gc-malloc.c @@ -236,7 +236,7 @@ scm_gc_free (void *mem, size_t size, const char *what) char * scm_gc_strndup (const char *str, size_t n, const char *what) { - char *dst = GC_MALLOC (n+1); + char *dst = GC_MALLOC_ATOMIC (n + 1); memcpy (dst, str, n); dst[n] = 0; return dst; |