Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > e061797e0adffac6c7fca5e587c5c5f2 > files > 8

lirc-0.8.6-7.fc13.src.rpm

From 3e45e512719feccaa16edfd208273bade4f724e4 Mon Sep 17 00:00:00 2001
From: Mathias Hasselmann <mathias@openismus.com>
Date: Wed, 13 Feb 2008 21:16:09 +0100
Subject: Use '.new' instead of '.conf' as filename suffix in template mode,
 and append that the suffix to 'filename_new' instead of 'filename',
 to prevent a buffer overrun for 'argv[optind]'.

---
diff -Naurp lirc.orig/daemons/irrecord.c lirc/daemons/irrecord.c
--- lirc.orig/daemons/irrecord.c	2008-08-27 13:04:46.000000000 -0400
+++ lirc/daemons/irrecord.c		2008-09-24 17:01:37.000000000 -0400
@@ -493,7 +493,7 @@ int main(int argc,char **argv)
 			exit(EXIT_FAILURE);
 		}
 		strcpy(filename_new, filename);
-		strcat(filename_new, ".conf");
+		strcat(filename_new, ".new");
 		filename = filename_new;
 	}
 	else