aboutsummaryrefslogtreecommitdiff
path: root/wiki.c
diff options
context:
space:
mode:
authorthe little girl <yui@blekksprut.net>2014-06-06 14:41:19 +0200
committerthe little girl <yui@blekksprut.net>2014-06-06 14:41:19 +0200
commit3f4676c3488e7fb065629029ad880f7d8a568200 (patch)
tree400b213b4945d42d876b2366cc53c1eafa2d379b /wiki.c
parent4cf2bb5092906bd9e4e689999c1729e37b4abd18 (diff)
downloadukulele-3f4676c3488e7fb065629029ad880f7d8a568200.tar.xz
oh oh oh pages og css
Diffstat (limited to 'wiki.c')
-rw-r--r--wiki.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiki.c b/wiki.c
index 5f3af7e..cd92564 100644
--- a/wiki.c
+++ b/wiki.c
@@ -138,7 +138,7 @@ int store(char *raw, int len) {
int pos = 0;
unsigned int decoded;
- char buffer[3];
+ char buffer[3] = { 0 };
for(int i = 0; i < len; i++) {
buffer[pos] = getchar();
if(buffer[pos] == '+') buffer[pos] = ' ';
@@ -281,7 +281,7 @@ int main(int argc, char **argv) {
setenv("MARXUP_PREFIX", base, 1);
setenv("MARXUP_WIKI", "1", 1);
- if(chdir("pages"))
+ if(chdir(pages))
return problem(503, "Service unavailable");
if(!strncmp(verb, "POST", 4)) return post(page);