comparison 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
comparison
equal deleted inserted replaced
199:c938fe391c84 200:5dbba661deab
469 lw_Basis_string lw_Basis_unurlifyString(lw_context ctx, char **s) { 469 lw_Basis_string lw_Basis_unurlifyString(lw_context ctx, char **s) {
470 char *new_s = lw_unurlify_advance(*s); 470 char *new_s = lw_unurlify_advance(*s);
471 char *r, *s1, *s2; 471 char *r, *s1, *s2;
472 int len, n; 472 int len, n;
473 473
474 len = strlen(new_s); 474 len = strlen(*s);
475 lw_check_heap(ctx, len + 1); 475 lw_check_heap(ctx, len + 1);
476 476
477 r = ctx->heap_front; 477 r = ctx->heap_front;
478 ctx->heap_front = lw_unurlifyString_to(ctx, ctx->heap_front, new_s); 478 ctx->heap_front = lw_unurlifyString_to(ctx, ctx->heap_front, *s);
479 *s = new_s; 479 *s = new_s;
480 return r; 480 return r;
481 } 481 }
482 482
483 483