mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-01-20 20:37:27 +01:00
fix some incorrect arguments to memset, thanks sbz for noticing.
git-svn-id: file:///home/svn/framework3/trunk@13123 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
07af2ba697
commit
e2388db2c0
@ -24,8 +24,8 @@ int current_unix_timestamp(void) {
|
||||
struct timeval tv;
|
||||
struct timezone tz;
|
||||
|
||||
memset(&tv, sizeof(tv));
|
||||
memset(&tz, sizeof(tz));
|
||||
memset(&tv, 0, sizeof(tv));
|
||||
memset(&tz, 0, sizeof(tz));
|
||||
|
||||
gettimeofday(&tv, &tz);
|
||||
return (long) tv.tv_usec;
|
||||
|
Loading…
Reference in New Issue
Block a user