1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-15 20:39:17 +00:00

Bugfix: putenv(3) was used with a stack variable, that's a no-no.

This commit is contained in:
magnum 2016-02-04 22:49:34 +01:00
parent d552e5d93c
commit 68dbaa6f8a

View File

@ -5072,7 +5072,7 @@ int main (int argc, char **argv)
if (compute) if (compute)
{ {
char display[100] = { 0 }; static char display[100];
snprintf (display, sizeof (display) - 1, "DISPLAY=%s", compute); snprintf (display, sizeof (display) - 1, "DISPLAY=%s", compute);