projects
/
hashcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d552e5d
)
Bugfix: putenv(3) was used with a stack variable, that's a no-no.
author
magnum
<john.magnum@hushmail.com>
Thu, 4 Feb 2016 21:49:34 +0000
(22:49 +0100)
committer
magnum
<john.magnum@hushmail.com>
Thu, 4 Feb 2016 21:49:34 +0000
(22:49 +0100)
src/oclHashcat.c
patch
|
blob
|
history
diff --git
a/src/oclHashcat.c
b/src/oclHashcat.c
index
331d100
..
89982b1
100644
(file)
--- 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);