diff src/c/urweb.c @ 959:53b9aeac676c

Fix C substring implementation
author Adam Chlipala <adamc@hcoop.net>
date Fri, 18 Sep 2009 19:30:09 -0400
parents 38a376dc7401
children 8371d12ae63f
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;
   }