diff options
author | the little girl <yui@blekksprut.net> | 2014-06-06 14:41:19 +0200 |
---|---|---|
committer | the little girl <yui@blekksprut.net> | 2014-06-06 14:41:19 +0200 |
commit | 3f4676c3488e7fb065629029ad880f7d8a568200 (patch) | |
tree | 400b213b4945d42d876b2366cc53c1eafa2d379b /wiki.c | |
parent | 4cf2bb5092906bd9e4e689999c1729e37b4abd18 (diff) | |
download | ukulele-3f4676c3488e7fb065629029ad880f7d8a568200.tar.xz |
oh oh oh pages og css
Diffstat (limited to 'wiki.c')
-rw-r--r-- | wiki.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |