blob: 6e4bfca618ae41ecd34dc0394aa67218279cbfc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- 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"
|