1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-23 23:19:09 +00:00

Merge pull request #1112 from philsmd/master

use putenv () with the COMPUTE environment as it was before
This commit is contained in:
Jens Steube 2017-02-15 14:34:36 +01:00 committed by GitHub
commit 30e3ad60fd

View File

@ -260,19 +260,7 @@ void setup_environment_variables ()
snprintf (display, sizeof (display) - 1, "DISPLAY=%s", compute);
// we only use this check to avoid "tainted string" warnings
u32 display_len_max = sizeof (display);
u32 display_len = strnlen (display, display_len_max);
if (display_len > 0) // should be always true
{
if (display_len < display_len_max) // some upper bound is always good
{
putenv (display);
}
}
putenv (display);
}
else
{