Skip to content

Commit c4d45fb

Browse files
Silence alert
1 parent d9cdff2 commit c4d45fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LoopData.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ struct alignas(16) LoopData {
7575
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
7676
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
7777
};
78-
sprintf(date, "%.3s, %.2d %.3s %d %.2d:%.2d:%.2d GMT",
78+
snprintf(date, 32, "%.3s, %.2d %.3s %d %.2d:%.2d:%.2d GMT",
7979
wday_name[tstruct.tm_wday],
8080
tstruct.tm_mday,
8181
mon_name[tstruct.tm_mon],

0 commit comments

Comments
 (0)