12 lines
444 B
Diff
12 lines
444 B
Diff
--- src/c/logger.c~ 2011-10-08 21:57:01.000000000 +0200
|
|
+++ src/c/logger.c 2014-03-07 14:43:55.922468885 +0100
|
|
@@ -871,7 +871,7 @@
|
|
*/
|
|
void generateLogFileName(char *buffer, const char *template, const char *nowDate, const char *rollNum ) {
|
|
/* Copy the template to the buffer to get started. */
|
|
- sprintf(buffer, template);
|
|
+ strcpy(buffer, template);
|
|
|
|
/* Handle the date token. */
|
|
if (strstr(buffer, "YYYYMMDD")) {
|