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



Rockbox mail archive

Subject: Re: bug in keyboard, after music played, bugfix
From: Alexander Eickhoff (alex_at_linux01.org)
Date: 2003-03-18


Am Samstag, 15. März 2003 14:53 schrieb Björn Stenberg:
> ----- Forwarded message from Alexander Eickhoff <alex_at_linux01.org> -----
>
> Date: Sat, 15 Mar 2003 11:20:32 +0100
> From: Alexander Eickhoff <alex_at_linux01.org>
> To: Björn Stenberg <bjorn_at_haxx.se>
> Subject: bug in keyboard, after music played
>
> hy björn,
> the keyboard function makes trouble .
> the string outline is to long, so ">" is overwritten. and strlen is 23 !?!
> normal with my fonts (max_chars - 2 )= 16
>
> before i play music strlen is every time 16 and all is ok...
> now i play music...
> len = 20.
>
> I am at my wit's end
>
> - alex
hy rockboxer,

man strncpy ;-)
- alex

Index: recorder/keyboard.c
===================================================================
RCS file: /cvsroot/rockbox/apps/recorder/keyboard.c,v
retrieving revision 1.5
diff -u -r1.5 keyboard.c
--- recorder/keyboard.c 10 Mar 2003 15:09:27 -0000 1.5
+++ recorder/keyboard.c 17 Mar 2003 23:02:34 -0000
@@ -157,7 +157,7 @@
                 lcd_putsxy(0, main_y, "<");
             }
         }
-
+ outline[max_chars - 2] = '\0';
         lcd_putsxy(font_w,main_y,outline);
 
         /* cursor */



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