summaryrefslogtreecommitdiff
path: root/blog.c
diff options
context:
space:
mode:
Diffstat (limited to 'blog.c')
-rw-r--r--blog.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/blog.c b/blog.c
index 263cb14..9772361 100644
--- a/blog.c
+++ b/blog.c
@@ -101,6 +101,7 @@ int handle_post(void)
*end++ = '-';
}
}
+ strcat(uri, ".html");
int newpost = openat(blogdir, uri, O_WRONLY | O_CREAT, 0644);
if (newpost == -1) {