guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.5-97-g51853e


From: Mark H Weaver
Subject: [Guile-commits] GNU Guile branch, stable-2.0, updated. v2.0.5-97-g51853ee
Date: Tue, 03 Apr 2012 13:57:26 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".

http://git.savannah.gnu.org/cgit/guile.git/commit/?id=51853eee69ca5811ae0661eb91868121c6ad1d74

The branch, stable-2.0 has been updated
       via  51853eee69ca5811ae0661eb91868121c6ad1d74 (commit)
      from  e26da7a24e79cf3a9d3052e78228a9dfed3c4f3d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 51853eee69ca5811ae0661eb91868121c6ad1d74
Author: Mark H Weaver <address@hidden>
Date:   Tue Apr 3 09:50:20 2012 -0400

    Fix scm_to_utf8_stringn to NUL-terminate properly
    
    * libguile/strings.c (scm_to_utf8_stringn): NUL-terminate using the
      correct pointer.

-----------------------------------------------------------------------

Summary of changes:
 libguile/strings.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libguile/strings.c b/libguile/strings.c
index f4828f8..ec55c50 100644
--- a/libguile/strings.c
+++ b/libguile/strings.c
@@ -1944,7 +1944,7 @@ scm_to_utf8_stringn (SCM str, size_t *lenp)
       else
         {
           buf = scm_malloc (predicted_len + 1);
-          ret[predicted_len] = 0;
+          buf[predicted_len] = 0;
         }
 
       ret = u32_to_u8 ((scm_t_uint32 *) scm_i_string_wide_chars (str),


hooks/post-receive
-- 
GNU Guile



reply via email to

[Prev in Thread] Current Thread [Next in Thread]