diff options
-rw-r--r-- | apps/gui/pitchscreen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/gui/pitchscreen.c b/apps/gui/pitchscreen.c index 78d049be10..8f542e8f27 100644 --- a/apps/gui/pitchscreen.c +++ b/apps/gui/pitchscreen.c | |||
@@ -199,7 +199,7 @@ static void pitchscreen_draw(struct screen *display, int max_lines, | |||
199 | #endif | 199 | #endif |
200 | ) | 200 | ) |
201 | { | 201 | { |
202 | unsigned char* ptr; | 202 | const char* ptr; |
203 | char buf[32]; | 203 | char buf[32]; |
204 | int w, h; | 204 | int w, h; |
205 | bool show_lang_pitch; | 205 | bool show_lang_pitch; |
@@ -318,10 +318,10 @@ static void pitchscreen_draw(struct screen *display, int max_lines, | |||
318 | { | 318 | { |
319 | if(at_limit) | 319 | if(at_limit) |
320 | { | 320 | { |
321 | snprintf(buf, sizeof(buf), "%s", str(LANG_STRETCH_LIMIT)); | 321 | const char * const p = str(LANG_STRETCH_LIMIT); |
322 | display->getstringsize(buf, &w, &h); | 322 | display->getstringsize(p, &w, &h); |
323 | display->putsxy((pitch_viewports[PITCH_MID].width / 2) - (w / 2), | 323 | display->putsxy((pitch_viewports[PITCH_MID].width / 2) - (w / 2), |
324 | (pitch_viewports[PITCH_MID].height / 2) + h, buf); | 324 | (pitch_viewports[PITCH_MID].height / 2) + h, p); |
325 | if (w > width_used) | 325 | if (w > width_used) |
326 | width_used = w; | 326 | width_used = w; |
327 | } | 327 | } |