We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9cdff2 commit c4d45fbCopy full SHA for c4d45fb
src/LoopData.h
@@ -75,7 +75,7 @@ struct alignas(16) LoopData {
75
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
76
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
77
};
78
- sprintf(date, "%.3s, %.2d %.3s %d %.2d:%.2d:%.2d GMT",
+ snprintf(date, 32, "%.3s, %.2d %.3s %d %.2d:%.2d:%.2d GMT",
79
wday_name[tstruct.tm_wday],
80
tstruct.tm_mday,
81
mon_name[tstruct.tm_mon],
0 commit comments