summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-07-20 14:44:05 -0400
committerJakob Kaivo <jkk@ung.org>2019-07-20 14:44:05 -0400
commit9ceef9cf5043916754178370d8caf46a8fc79954 (patch)
tree9075cbf072b0fd175e4153d85eee0ad3c0074515
parent339cd70e8b9864a3d575a538112f9a7100b1a750 (diff)
add .html to filenames
-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) {