diff src/c/lacweb.c @ 200:5dbba661deab

Urlifying records
author Adam Chlipala <adamc@hcoop.net>
date Sat, 09 Aug 2008 20:08:29 -0400
parents c938fe391c84
children
line wrap: on
line diff
--- a/src/c/lacweb.c	Sat Aug 09 19:46:12 2008 -0400
+++ b/src/c/lacweb.c	Sat Aug 09 20:08:29 2008 -0400
@@ -471,11 +471,11 @@
   char *r, *s1, *s2;
   int len, n;
 
-  len = strlen(new_s);
+  len = strlen(*s);
   lw_check_heap(ctx, len + 1);
 
   r = ctx->heap_front;
-  ctx->heap_front = lw_unurlifyString_to(ctx, ctx->heap_front, new_s);
+  ctx->heap_front = lw_unurlifyString_to(ctx, ctx->heap_front, *s);
   *s = new_s;
   return r;
 }