summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-01-27 14:43:32 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-01-27 14:43:32 +0000
commitb8f5759d96ced9602ae4b510207a38b40a68fca5 (patch)
tree72cf8870a0a9e532847fa3e3d85423e3d1645365 /apps
parenta9b04beba4f5a026f14936aae08c42cb8d1aa571 (diff)
downloadrockbox-b8f5759d96ced9602ae4b510207a38b40a68fca5.tar.gz
rockbox-b8f5759d96ced9602ae4b510207a38b40a68fca5.tar.bz2
rockbox-b8f5759d96ced9602ae4b510207a38b40a68fca5.zip
tm_mon starts at 0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3173 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/recorder/recording.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index adcea752d4..ade7e5146f 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -143,7 +143,7 @@ static char *create_filename(void)
/* Create a filename: RYYMMDDHHMMSS.mp3 */
snprintf(fname, 32, "/R%02d%02d%02d%02d%02d%02d.mp3",
- tm->tm_year%100, tm->tm_mon, tm->tm_mday,
+ tm->tm_year%100, tm->tm_mon+1, tm->tm_mday,
tm->tm_hour, tm->tm_min, tm->tm_sec);
DEBUGF("Filename: %s\n", fname);