From 5100a2116352b511151719f8d728597d2e6d8fb1 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Tue, 15 May 2018 12:51:09 +1000 Subject: [PATCH] attempt to fix www_downloads --- src/www_files.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/www_files.c b/src/www_files.c index a32e331..4f6cc17 100644 --- a/src/www_files.c +++ b/src/www_files.c @@ -259,6 +259,8 @@ char *www_create_link(int dir, int sub, int fid) { hashid = (char *)malloc(sizereq); + memset(hashid, 0, sizereq); + if (hashids_encode_v(hashids, hashid, 4, gUser->id, dir, sub, fid) == 0) { hashids_free(hashids); free(hashid);