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
commit9f3c3a0215d3f23c8e51fa4824d21dfeaa08ede0 (patch)
treea8c3921d96def7a0b75f2579a9eca46258bf9c83 /src/c
parent00b2a86f9af8d57b6ba134cdd6b3a1ce72ea8a5f (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,