Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release-src > by-pkgid > 38c8f80702dbd8209c456470e87615ab > files > 2

irda-utils-0.9.18-19.mga5.src.rpm

--- irda-utils-0.9.15/irattach/irattach.c.rh1	2003-11-24 17:30:21.000000000 +0100
+++ irda-utils-0.9.15/irattach/irattach.c	2003-11-24 17:34:51.000000000 +0100
@@ -614,7 +614,7 @@
 	/* First arg is device name. Save it now, because in some cases
 	 * getopt() will remove it... */
 	strncpy(device, argv[1], 20);
-	device[20] = '\0';
+	device[19] = '\0';
 
 	/* Look for options */
 	/* Do this before processing device, to handle "-h" and -v"