aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ukulele.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ukulele.c b/ukulele.c
index ce12dff..133d30a 100644
--- a/ukulele.c
+++ b/ukulele.c
@@ -141,10 +141,10 @@ int store(char *raw, int len) {
char *id = basename(strdup(raw));
if(chdir(dir))
return problem(404, "Not found");
- size_t len = strlen(loft) + strlen(id) + 256;
- char path[len];
+ size_t siz = strlen(loft) + strlen(id) + 256;
+ char path[siz];
time_t epoch = time(0);
- snprintf(path, len, "%s/%s.%d", loft, id, (int) epoch);
+ snprintf(path, siz, "%s/%s.%d", loft, id, (int) epoch);
FILE *fp = fopen(path, "w");
if(!fp) return redirect("fff", 0);
int pos = 0;