Rockbox mail archiveSubject: grabled string being displayed
grabled string being displayed
Date: Sun, 27 Apr 2003 17:00:05 +0200 (MEST)
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
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 ).
I`m not quite shure if this causes this garbeled output, but maybe this
could be the reason, right?
-- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!Received on 2003-04-27