From c9c2106bb94500d7ee5804d4cb6f4e26027a75d2 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sat, 21 Aug 2021 09:45:44 +0200 Subject: [PATCH] Use SHA256 hash for cache/ instead of old MD5 --- src/support.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/support.c b/src/support.c index d388abc43..67ab4570f 100644 --- a/src/support.c +++ b/src/support.c @@ -874,9 +874,9 @@ char *unreal_getmodfilename(char *path) char *unreal_mkcache(const char *url) { static char tempbuf[PATH_MAX+1]; - char tmp2[33]; + char tmp2[128]; - snprintf(tempbuf, PATH_MAX, "%s/%s", CACHEDIR, md5hash(tmp2, url, strlen(url))); + snprintf(tempbuf, PATH_MAX, "%s/%s", CACHEDIR, sha256hash(tmp2, url, strlen(url))); return tempbuf; }