diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-11-21 00:14:52 -0500 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2022-11-21 00:25:12 -0500 |
commit | 658cc9588569af9cba054ad6f1b1e92204961d20 (patch) | |
tree | 2f95a8ed522bd2247fea0db25bfa4010e91326ec /apps/gui/line.c | |
parent | eb9b3513faa0d7e5bc2d7bb9ed098801191af1d8 (diff) | |
download | rockbox-658cc9588569af9cba054ad6f1b1e92204961d20.tar.gz rockbox-658cc9588569af9cba054ad6f1b1e92204961d20.zip |
remove some sprintf putsxy calls in favor of putsxyf
we now have putsxyf in screens[] so no need for a separate
buffer in these cases
Change-Id: Ife0738e731f03d255f512bab3d5bb07b8be8693d
Diffstat (limited to 'apps/gui/line.c')
-rw-r--r-- | apps/gui/line.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/gui/line.c b/apps/gui/line.c index d319ff3c51..7e84aa7b31 100644 --- a/apps/gui/line.c +++ b/apps/gui/line.c | |||
@@ -264,8 +264,7 @@ next: | |||
264 | else | 264 | else |
265 | { | 265 | { |
266 | /* any other character here is an erroneous format string */ | 266 | /* any other character here is an erroneous format string */ |
267 | snprintf(tempbuf, sizeof(tempbuf), "<E:%c>", ch); | 267 | display->putsxyf(xpos, y, "<E:%c>", ch); |
268 | display->putsxy(xpos, y, tempbuf); | ||
269 | /* Don't consider going forward, fix the caller */ | 268 | /* Don't consider going forward, fix the caller */ |
270 | return; | 269 | return; |
271 | } | 270 | } |