summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/httpd.c b/httpd.c
index 256d7b1..3746a7f 100644
--- a/httpd.c
+++ b/httpd.c
@@ -47,7 +47,6 @@ int server_get_handler(d_char *req, char *q_path,
xs *list = user_list();
char *p, *uid;
xs *ul = xs_str_new("<ul class=\"snac-user-list\">\n");
- xs *os = s;
p = list;
while (xs_list_iter(&p, &uid)) {
@@ -67,7 +66,7 @@ int server_get_handler(d_char *req, char *q_path,
ul = xs_str_cat(ul, "</ul>\n");
- s = xs_replace(os, "%userlist%", ul);
+ s = xs_replace_i(s, "%userlist%", ul);
}
*body = s;