# HG changeset patch # User js # Date 1168980100 28800 # Node ID 86478f5b05430e67c103a008eeb6317e1a5d4660 # Parent 84fdf898438b5bf66d75e3bd2091a5b005491e09 [svn] Fix of possible buffer overflow. diff -r 84fdf898438b -r 86478f5b0543 ChangeLog --- a/ChangeLog Tue Jan 16 12:17:06 2007 -0800 +++ b/ChangeLog Tue Jan 16 12:41:40 2007 -0800 @@ -1,3 +1,10 @@ +2007-01-16 20:17:06 +0000 Giacomo Lozito + revision [964] + - status icon plugin: try to auto-detect the correct size for the status icon + trunk/src/statusicon/si_ui.c | 51 +++++++++++++++++++++++++++++++++++++++---- + 1 file changed, 47 insertions(+), 4 deletions(-) + + 2007-01-16 18:34:12 +0000 Giacomo Lozito revision [962] - status icon plugin: made a tooltip popup that displays metadata of the current song diff -r 84fdf898438b -r 86478f5b0543 src/tta/aud-tta.c --- a/src/tta/aud-tta.c Tue Jan 16 12:17:06 2007 -0800 +++ b/src/tta/aud-tta.c Tue Jan 16 12:41:40 2007 -0800 @@ -898,7 +898,7 @@ if (tag) { str = tta_input_id3_get_string (tag, ID3_FRAME_ARTIST); if(str) { - strcpy(ttainfo->id3v2.artist, str); + strncpy(ttainfo->id3v2.artist, str, MAX_LINE); strncpy(ttainfo->id3v1.artist, str, 30); } free(str);