]> git.ipfire.org Git - pakfire.git/commitdiff
pakfire: Actually check variable we want to write to
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 12 Mar 2021 20:08:05 +0000 (20:08 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 12 Mar 2021 20:08:05 +0000 (20:08 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/pakfire.c

index 805beab20ef51dade667b89b0fe80f2e3d45a001..b63325268587d05c2cfc5c33e3480c3678f72203 100644 (file)
@@ -667,7 +667,7 @@ PAKFIRE_EXPORT char* pakfire_make_cache_path(Pakfire pakfire, const char* format
        va_list args;
 
        va_start(args, format);
-       vsnprintf(path, sizeof(PATH_MAX) - 1, format, args);
+       vsnprintf(path, sizeof(path) - 1, format, args);
        va_end(args);
 
        // Prepend cache path