You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
777 B
21 lines
777 B
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
|