changeset 959:53b9aeac676c

Fix C substring implementation
author Adam Chlipala <adamc@hcoop.net>
date Fri, 18 Sep 2009 19:30:09 -0400
parents 3aaac251a5af
children 6f34950825b6
files src/c/urweb.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/c/urweb.c	Thu Sep 17 19:15:10 2009 -0400
+++ b/src/c/urweb.c	Fri Sep 18 19:30:09 2009 -0400
@@ -1912,7 +1912,7 @@
     return &s[start];
   else {
     uw_Basis_string r = uw_malloc(ctx, len+1);
-    memcpy(r, s, len);
+    memcpy(r, s+start, len);
     r[len] = 0;
     return r;
   }