refactor: strlen -> strnlen

This commit is contained in:
2025-11-10 14:31:37 +01:00
parent 352f97c2db
commit 8f19c243f0
3 changed files with 11 additions and 10 deletions
+2 -2
View File
@@ -44,12 +44,12 @@ static void compute_fps(bool trace_fps) {
}
if (window_output != NULL) {
sprintf(title, PACKAGE " " VERSION " - %.0ffps", fps);
snprintf(title, STR_LEN, PACKAGE " " VERSION " - %.0ffps", fps);
window_update_title(window_output, title);
}
if (window_monitor != NULL) {
sprintf(title, PACKAGE " " VERSION " (monitor) - %.0ffps", fps);
snprintf(title, STR_LEN, PACKAGE " " VERSION " (monitor) - %.0ffps", fps);
window_update_title(window_monitor, title);
}