Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: grabled string being displayed
From: for_spam_at_gmx.de
Date: 2003-04-27


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?

regards
roland

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa