diff options
Diffstat (limited to 'ukulele.c')
-rw-r--r-- | ukulele.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |