From 364bc9dacd0c8d9077d19e0d951fb0c8e244ee08 Mon Sep 17 00:00:00 2001 From: Quinn Date: Thu, 12 Jun 2025 10:51:45 +0200 Subject: [PATCH] fix: windows syntax errors / typos --- src/util/conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/conf.c b/src/util/conf.c index 56631b5..de56d5e 100644 --- a/src/util/conf.c +++ b/src/util/conf.c @@ -109,10 +109,10 @@ char* conf_getpat(char const* restrict str) { #elif defined(_WIN32) || defined(_WIN64) || defined(__CYGWIN__) buf = getenv("APPDATA"); if (!buf) { - cfgpat = getenv("USERPROFILE"); + buf = getenv("USERPROFILE"); if (!buf) return NULL; len = strlen(buf); - return conf_getpat_concat(buf, "\\AppData\\Roaming", str, buf, 16, str_len); + return conf_getpat_concat(buf, "\\AppData\\Roaming", str, len, 16, str_len); } return conf_getpat_concat(buf, NULL, str, strlen(buf), 0, str_len); #else