summaryrefslogtreecommitdiff
path: root/apps/logfdisp.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-06-04 08:16:57 +0000
committerJens Arnold <amiconn@rockbox.org>2005-06-04 08:16:57 +0000
commitf40175c8dc28d983eb9180b0db44cf2f01da41b1 (patch)
tree5516cb2afcabd19c643c0304f3fd98f98fc7aada /apps/logfdisp.c
parent182696d1c0c582ce97d339bfd336ab313d94c761 (diff)
Truncate logfile on open.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6556 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/logfdisp.c')
-rw-r--r--apps/logfdisp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/logfdisp.c b/apps/logfdisp.c
index 2e85b5ce30..2858fba566 100644
--- a/apps/logfdisp.c
+++ b/apps/logfdisp.c
@@ -98,7 +98,7 @@ bool logfdump(void)
/* nothing is logged just yet */
return false;
- fd = open("/.rockbox/logf.txt", O_CREAT|O_WRONLY);
+ fd = open("/.rockbox/logf.txt", O_CREAT|O_WRONLY|O_TRUNC);
if(-1 != fd) {
unsigned char buffer[MAX_LOGF_ENTRY +1];
int index = logfindex-1;