changeset 441:86478f5b0543 trunk

[svn] Fix of possible buffer overflow.
author js
date Tue, 16 Jan 2007 12:41:40 -0800
parents 84fdf898438b
children 052f21493419
files ChangeLog src/tta/aud-tta.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 <james@develia.org>
+  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 <james@develia.org>
   revision [962]
   - status icon plugin: made a tooltip popup that displays metadata of the current song
--- 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);