summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-04-23 11:23:17 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-04-23 11:23:17 +0200
commit33397874da5b29b16bcac13624160a89eb010058 (patch)
tree5a309d5349949b4a4a5ddb49b501c61917b6ed5d
parentd7c8025fba61355f6b7f8e306c930da11525cb63 (diff)
downloadvdr-33397874da5b29b16bcac13624160a89eb010058.tar.gz
vdr-33397874da5b29b16bcac13624160a89eb010058.tar.bz2
Fixed a format string in recording.c to avoid a compiler warning on 64bit systems
-rw-r--r--CONTRIBUTORS5
-rw-r--r--HISTORY3
-rw-r--r--recording.c4
3 files changed, 10 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 46efc30a..cda2ec5e 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1737,6 +1737,7 @@ Christian Wieninger <cwieninger@gmx.de>
for suggesting to add cMenuEditStrItem::InEditMode()
for his idea of going directly into the "Edit timer" menu for a timer created
from the "Schedule" menu in case it starts withing the next two minutes
+ for reporting a problem with a format string in recording.c on 64bit systems
Thiemo Gehrke <tgehrke@reel-multimedia.com>
for suggesting to add a setup option to turn off the automatic timeout of the
@@ -1857,3 +1858,7 @@ Peter Juszack <vdr@unterbrecher.de>
Pierre Briec <pbriec@free.fr>
for translating OSD texts to the French language
+
+Werner Schweer <ws@seh.de>
+ for pointing out that the 'z' printf modifier should be used for 'size_t' type
+ arguments
diff --git a/HISTORY b/HISTORY
index dac02f47..0271131f 100644
--- a/HISTORY
+++ b/HISTORY
@@ -4643,3 +4643,6 @@ Video Disk Recorder Revision History
- Fixed some missing '-' in the German OSD texts (thanks to Walter Koch).
- Added an error message about plugins that don't honor APIVERSION in their Makefile
(based on a suggestion by Udo Richter).
+- Fixed a format string in recording.c to avoid a compiler warning on 64bit systems
+ (thanks to Christian Wieninger for reporting, and Werner Schweer for pointing out
+ that the 'z' modifier should be used here).
diff --git a/recording.c b/recording.c
index 1f2f015b..351713e9 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 1.146 2006/04/17 11:00:00 kls Exp $
+ * $Id: recording.c 1.147 2006/04/23 10:43:06 kls Exp $
*/
#include "recording.h"
@@ -1197,7 +1197,7 @@ cIndexFile::cIndexFile(const char *FileName, bool Record)
LOG_ERROR_STR(fileName);
}
else
- esyslog("ERROR: can't allocate %d bytes for index '%s'", size * sizeof(tIndex), fileName);
+ esyslog("ERROR: can't allocate %zd bytes for index '%s'", size * sizeof(tIndex), fileName);
}
}
else