Fix [-Werror=format-truncation] compiler warning b/c of potential minus signs (#1575)

This commit is contained in:
mtrenkmann
2023-02-09 00:14:29 +01:00
committed by GitHub
parent 9aff5ffa06
commit c5abc1d75f
+1 -1
View File
@@ -76,7 +76,7 @@ public:
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
};
snprintf(date, 32, "%.3s, %.2d %.3s %d %.2d:%.2d:%.2d GMT",
snprintf(date, 32, "%.3s, %.2u %.3s %.4u %.2u:%.2u:%.2u GMT",
wday_name[tstruct.tm_wday],
tstruct.tm_mday % 99,
mon_name[tstruct.tm_mon],