From 42a0a0c0488ed38cc60ee8d4b006a42ed1e4dc95 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Mon, 23 Nov 2020 18:40:31 +0100 Subject: get the size of the correct variable sizeof(dxvkdir) returns the size of void*, not what we want --- src/dxvk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/dxvk.c b/src/dxvk.c index 5a33394..59bb345 100644 --- a/src/dxvk.c +++ b/src/dxvk.c @@ -62,7 +62,7 @@ int dxvk_download(int argc, char** argv) struct MemoryStruct* archive; char dxvkdir[PATH_MAX]; - getDXVKDir(dxvkdir, sizeof(dxvk)); + getDXVKDir(dxvkdir, sizeof(dxvkdir)); makeDir(dxvkdir); printf("Downloading %s\n", name); -- cgit v1.2.3