mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 23:40:39 +00:00
Oops, timegm() is supposed to modify its argument.
This commit is contained in:
parent
86caa700d0
commit
65a1350f32
@ -75,9 +75,7 @@ void gettimeofday(timeval *tv, void *ignore)
|
||||
|
||||
time_t rtc_timegm(struct tm *tm)
|
||||
{
|
||||
struct tm modified;
|
||||
memcpy(&modified, tm, sizeof(modified));
|
||||
return _mkgmtime(&modified);
|
||||
return _mkgmtime(tm);
|
||||
}
|
||||
|
||||
#elif defined(__GLIBC__) && !defined(ANDROID)
|
||||
|
Loading…
Reference in New Issue
Block a user