mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 02:58:36 -07:00
GUI: Replace strcat() usage with strlcat()
This commit is contained in:
@@ -327,7 +327,7 @@ static void text_input_view_draw_callback(Canvas* canvas, void* _model) {
|
||||
while(len && canvas_string_width(canvas, str) > needed_string_width) {
|
||||
str[len--] = '\0';
|
||||
}
|
||||
strcat(str, "...");
|
||||
strlcat(str, "...", sizeof(buf) - (str - buf));
|
||||
}
|
||||
|
||||
canvas_draw_str(canvas, start_pos, 22, str);
|
||||
|
||||
Reference in New Issue
Block a user