summaryrefslogtreecommitdiff
path: root/blog.c
diff options
context:
space:
mode:
Diffstat (limited to 'blog.c')
-rw-r--r--blog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blog.c b/blog.c
index 2685eb2..c46f302 100644
--- a/blog.c
+++ b/blog.c
@@ -53,7 +53,7 @@ int handle_post(void)
char *end = stpcpy(uri, ymd);
*end++ = '/';
for (char *f = title; *f != '\0'; f++) {
- *end++ = isalnum(*f) ? *f : '-';
+ *end++ = isalnum(*f) ? tolower(*f) : '-';
}
int newpost = openat(blogdir, uri, O_WRONLY | O_CREAT, 0644);