From 65a1350f327ed42ed707930c7b7c56007ea46e17 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 9 Sep 2013 08:50:49 -0700 Subject: [PATCH] Oops, timegm() is supposed to modify its argument. --- Core/HLE/sceRtc.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Core/HLE/sceRtc.cpp b/Core/HLE/sceRtc.cpp index b1232c4941..06fa4abf04 100644 --- a/Core/HLE/sceRtc.cpp +++ b/Core/HLE/sceRtc.cpp @@ -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)