mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Oops, timegm() is supposed to modify its argument.
This commit is contained in:
1 parent
86caa700d0
commit
65a1350f32
1 file changed
+1
-3
+1
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user