increase tz buffer size

This commit is contained in:
Diamond Rivero
2022-10-02 19:12:48 +08:00
parent e9da170bcf
commit cfb2678023

View File

@@ -27,7 +27,7 @@ void __timezone_update()
int minutes = tzOffsetAbs - hours * 60;
int pspDaylight = 0;
sceUtilityGetSystemParamInt(PSP_SYSTEMPARAM_ID_INT_DAYLIGHTSAVINGS, &pspDaylight);
static char tz[18];
static char tz[33];
sprintf(tz, "GMT%s%02i:%02i%s", tzOffset < 0 ? "+" : "-", hours, minutes, pspDaylight ? "daylight" : "");
setenv("TZ", tz, 1);
}