From: magnum Date: Thu, 4 Feb 2016 21:49:34 +0000 (+0100) Subject: Bugfix: putenv(3) was used with a stack variable, that's a no-no. X-Git-Tag: v3.00-beta~395^2^2 X-Git-Url: https://www.flypig.org.uk/git/?a=commitdiff_plain;h=68dbaa6f8adb52bb94d53c6d211ac249f1d35530;p=hashcat.git Bugfix: putenv(3) was used with a stack variable, that's a no-no. --- diff --git a/src/oclHashcat.c b/src/oclHashcat.c index 331d100..89982b1 100644 --- a/src/oclHashcat.c +++ b/src/oclHashcat.c @@ -5072,7 +5072,7 @@ int main (int argc, char **argv) if (compute) { - char display[100] = { 0 }; + static char display[100]; snprintf (display, sizeof (display) - 1, "DISPLAY=%s", compute);