mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-06-03 13:49:15 +08:00
Improve sscanf safety.
This commit is contained in:
parent
9e8e959e75
commit
a711e3e39b
@ -611,10 +611,10 @@ void ui_draw_titledb_info(ui_view* view, void* data, float x1, float y1, float x
|
|||||||
|
|
||||||
ui_draw_meta_info(view, &info->meta, x1, y1, x2, y2);
|
ui_draw_meta_info(view, &info->meta, x1, y1, x2, y2);
|
||||||
|
|
||||||
char updatedDate[32];
|
char updatedDate[32] = "";
|
||||||
char updatedTime[32];
|
char updatedTime[32] = "";
|
||||||
|
|
||||||
sscanf(info->updatedAt, "%[^T]T%[^Z]Z", updatedDate, updatedTime);
|
sscanf(info->updatedAt, "%31[^T]T%31[^Z]Z", updatedDate, updatedTime);
|
||||||
|
|
||||||
char infoText[512];
|
char infoText[512];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user