mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 21:47:45 +00:00
STABLE14-another-time_t-pointer-bug-20060320
do not pass pointers to 32-bit values as pointers to 64-bit values. this results in memory corruption (cherry picked from commit 1b2fbe5fa9384eb5e1b19487eb6b0d201bea975e)
This commit is contained in:
parent
cb91532946
commit
e1ec085f99
@ -115,8 +115,9 @@ int
|
||||
ktimeDate_FromInt32(afs_int32 timeSecs, struct ktime_date *ktimePtr)
|
||||
{
|
||||
struct tm *timePtr;
|
||||
time_t tt = timeSecs;
|
||||
|
||||
timePtr = localtime((time_t *) & timeSecs);
|
||||
timePtr = localtime(&tt);
|
||||
|
||||
/* copy the relevant fields */
|
||||
ktimePtr->sec = timePtr->tm_sec;
|
||||
|
Loading…
x
Reference in New Issue
Block a user