diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-11 16:00:42 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-11 16:00:42 +0200 |
commit | 388db8ab697cc62327bbe3b89148493e9307ded5 (patch) | |
tree | fe2a62248f9a215bfcc8d39169597e455d49bb4f | |
parent | d6fba6717e707b7f66b83b21664c398a4aa5dda1 (diff) |
Fixed: Mishandled format string
IssueID #31
-rw-r--r-- | src/ui/inputwidget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c index 56192e27..537afb00 100644 --- a/src/ui/inputwidget.c +++ b/src/ui/inputwidget.c | |||
@@ -775,7 +775,7 @@ static void draw_InputWidget_(const iInputWidget *d) { | |||
775 | const iInt2 curPos = addX_I2(textOrigin, prefixSize.x); | 775 | const iInt2 curPos = addX_I2(textOrigin, prefixSize.x); |
776 | const iRect curRect = { curPos, addX_I2(advance_Text(d->font, cstr_String(&cur)), 1) }; | 776 | const iRect curRect = { curPos, addX_I2(advance_Text(d->font, cstr_String(&cur)), 1) }; |
777 | fillRect_Paint(&p, curRect, uiInputCursor_ColorId); | 777 | fillRect_Paint(&p, curRect, uiInputCursor_ColorId); |
778 | draw_Text(d->font, curPos, uiInputCursorText_ColorId, cstr_String(&cur)); | 778 | draw_Text(d->font, curPos, uiInputCursorText_ColorId, "%s", cstr_String(&cur)); |
779 | deinit_String(&cur); | 779 | deinit_String(&cur); |
780 | } | 780 | } |
781 | delete_String(text); | 781 | delete_String(text); |