diff options
author | Ludovic Courtès <ludo@gnu.org> | 2011-03-20 23:34:42 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2011-03-20 23:34:42 +0100 |
commit | 190d4b0d93599e5b58e773dc6375054c3a6e3dbf (patch) | |
tree | 3feaf151da16529141472853968c14f570b5955a /libguile/socket.c | |
parent | 95c1cfb550e2e753324c5cc57ef5df90034f072a (diff) |
Make VM string literals immutable.
* libguile/strings.c (scm_i_make_string, scm_i_make_wide_string): Add
`read_only_p' parameter. All callers updated.
* libguile/vm-i-loader.c (load_string, load_wide_string): Push read-only
strings.
* test-suite/tests/strings.test ("literals"): New test prefix.
Diffstat (limited to 'libguile/socket.c')
-rw-r--r-- | libguile/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/socket.c b/libguile/socket.c index 10597081d..632dd4f40 100644 --- a/libguile/socket.c +++ b/libguile/socket.c @@ -1426,7 +1426,7 @@ SCM_DEFINE (scm_recv, "recv!", 2, 1, 0, "use a bytevector instead."); len = scm_i_string_length (buf); - msg = scm_i_make_string (len, &dest); + msg = scm_i_make_string (len, &dest, 0); SCM_SYSCALL (rv = recv (fd, dest, len, flg)); scm_string_copy_x (buf, scm_from_int (0), msg, scm_from_int (0), scm_from_size_t (len)); |