summaryrefslogtreecommitdiff
path: root/src/c
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-03-28 11:15:42 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-03-28 11:15:42 -0400
commit213564f740d896c9a8bd86b5e2221d9434b126d3 (patch)
treea8c3921d96def7a0b75f2579a9eca46258bf9c83 /src/c
parent0168071775d98602c427b4b915fb6489cc2f10ff (diff)
Switch back to starting listener on load
Diffstat (limited to 'src/c')
-rw-r--r--src/c/urweb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index c8fe39ca..7c0cdb25 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -861,8 +861,8 @@ const char *uw_Basis_get_settings(uw_context ctx, uw_Basis_string onload) {
int pass;
client *c = uw_new_client(&pass);
- char *r = uw_malloc(ctx, 41 + 3 * INTS_MAX + strlen(ctx->url_prefix) + strlen(onload));
- sprintf(r, " onload='client_id=%d;client_pass=%d;url_prefix=\"%s\";timeout=%d;%s'",
+ char *r = uw_malloc(ctx, 52 + 3 * INTS_MAX + strlen(ctx->url_prefix) + strlen(onload));
+ sprintf(r, " onload='client_id=%d;client_pass=%d;url_prefix=\"%s\";timeout=%d;listener();%s'",
(int)c->id,
c->data.used.pass,
ctx->url_prefix,