durchflieger
Warum diese Änderung ? Das macht doch das gleiche über zwischen-Variablen und ändert nicht wirklich was, oder ?
@@ -3677,9 +3677,13 @@ time_t cMarkAdStandalone::GetRecordingStart(time_t start, int fd) {
time_t now = time(NULL);
struct tm tm_r;
struct tm t = *localtime_r(&now, &tm_r); // init timezone
- if (sscanf(timestr, "%4d-%02d-%02d.%02d%*c%02d", &t.tm_year, &t.tm_mon, &t.tm_mday, &t.tm_hour, & t.tm_min)==5) {
- t.tm_year -= 1900;
- t.tm_mon--;
+ int y, mo, d, h, mi;
+ if (sscanf(timestr, "%4d-%02d-%02d.%02d%*c%02d", &y, &mo, &d, &h, &mi)==5) {
+ t.tm_year = y - 1900;
+ t.tm_mon = mo - 1;
+ t.tm_mday = d;
+ t.tm_hour = h;
+ t.tm_min = mi;
t.tm_sec = 0;
t.tm_isdst = -1;
isyslog("getting recording start from directory (can be wrong!)");
Alles anzeigen