dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: grabled string being displayed

grabled string being displayed

From: <>
Date: Sun, 27 Apr 2003 17:00:05 +0200 (MEST)

hello again,
i came across garbled string being displayed in:

general settings -> display -> peak meter ->peak release

in english this works without problems - but when i use german language, the
string "Units per Read" (ger:Einheiten pro gelesenem Wert") gets messed up,
when selecting a value <10. (it changes to "˙˙˙˙˙˙˙˙˙˙˙˙˙" - may depend on
the font being used).

i looked into the code and think this must have to do with set_int() in
settings.c .

there is:

snprintf(str,sizeof str,"%d %s ", *variable, unit);

german description of "units per read" is "Einheiten pro gelesenem Wert",
that is 28chars.
Combined with format string "%d %s " this exceeds the reserved string size
of 32 bytes
( char str[32] ).

I`m not quite shure if this causes this garbeled output, but maybe this
could be the reason, right?


+++ GMX - Mail, Messaging & more +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
Received on 2003-04-27

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy