From 33dbb6c0000a5d82267f984191e7390be86b7dfd Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Tue, 8 Sep 2009 10:55:49 -0400 Subject: dragList demo working, save for Gecko load delay and highlighting --- src/c/urweb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/c/urweb.c b/src/c/urweb.c index 4160fa81..8566609b 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -2556,6 +2556,7 @@ void uw_commit(uw_context ctx) { char *start = strstr(ctx->page.start, ""); if (start) { buf_check(&ctx->page, buf_used(&ctx->page) - 4 + len); + start = strstr(ctx->page.start, ""); memmove(start + len, start + 4, buf_used(&ctx->page) - (start - ctx->page.start) - 3); ctx->page.front += len - 4; memcpy(start, ctx->script_header, len); @@ -2566,13 +2567,13 @@ void uw_commit(uw_context ctx) { char *start = strstr(ctx->page.start, ""); if (start) { buf_check(&ctx->page, buf_used(&ctx->page) - 4 + lenP); + start = strstr(ctx->page.start, ""); memmove(start + lenP, start + 4, buf_used(&ctx->page) - (start - ctx->page.start) - 3); ctx->page.front += lenP - 4; memcpy(start, ctx->script_header, lenH); memcpy(start + lenH, "", 9); - printf("start=%s\n", start); } } } -- cgit v1.2.3