Re: [patch] Gtcd buffer overrun



Sorry, the patch was wrong. Here's a good one.

-- 
Nuno Ferreira
nmrf@rnl.ist.utl.pt
Index: gcddb.c
===================================================================
RCS file: /debian/home/gnomecvs/gnome-media/tcd/gcddb.c,v
retrieving revision 1.8
diff -u -r1.8 gcddb.c
--- gcddb.c	1998/05/08 03:35:29	1.8
+++ gcddb.c	1998/05/16 06:35:43
@@ -91,12 +91,12 @@
 	start_id = gtk_signal_connect (GTK_OBJECT (startbutton), "clicked",
 		GTK_SIGNAL_FUNC(do_cddb), NULL);
 
-	snprintf( tmp, 256, "Server: %s:%d\n", props.cddb, props.cddbport );
+	snprintf( tmp, 255, "Server: %s:%d\n", props.cddb, props.cddbport );
         tmplabel = gtk_label_new(tmp);
 	gtk_box_pack_start( GTK_BOX(infobox), tmplabel, FALSE, TRUE, 0 );
 	if( props.use_http )
 	{
-		snprintf( tmp, 256, "HTTP %s Enabled\n", 
+		snprintf( tmp, 255, "HTTP %s Enabled\n", 
 			props.use_proxy?"and Proxy":"" );
 	        tmplabel = gtk_label_new(tmp);
 		gtk_box_pack_start( GTK_BOX(infobox), tmplabel, FALSE, TRUE, 0 );


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]