Mercurial > urweb
diff src/c/urweb.c @ 694:7ea0df9e56b6
spawn
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 04 Apr 2009 14:55:36 -0400 |
parents | 655bcc9b77e0 |
children | 500e93aa436f |
line wrap: on
line diff
--- a/src/c/urweb.c Sat Apr 04 14:03:39 2009 -0400 +++ b/src/c/urweb.c Sat Apr 04 14:55:36 2009 -0400 @@ -701,17 +701,16 @@ } } -const char *uw_Basis_get_settings(uw_context ctx, uw_Basis_string onload) { +const char *uw_Basis_get_settings(uw_context ctx, uw_unit u) { if (ctx->client == NULL) return ""; else { - char *r = uw_malloc(ctx, 52 + 3 * INTS_MAX + strlen(ctx->url_prefix) + strlen(onload)); - sprintf(r, " onload='client_id=%u;client_pass=%d;url_prefix=\"%s\";timeout=%d;listener();%s'", + char *r = uw_malloc(ctx, 59 + 3 * INTS_MAX + strlen(ctx->url_prefix)); + sprintf(r, "client_id=%u;client_pass=%d;url_prefix=\"%s\";timeout=%d;listener();", ctx->client->id, ctx->client->pass, ctx->url_prefix, - ctx->timeout, - onload); + ctx->timeout); return r; } }