summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2007-02-24 21:40:00 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2007-02-24 21:40:00 +0000
commit3036a2a2e290fc390c04c024bf96257bc8df4762 (patch)
tree8a3b5eec5f55ed393fcd332aef751c64bda180ff
parente26124b327146900b5466804ab71a7241c177c50 (diff)
downloadrockbox-3036a2a2e290fc390c04c024bf96257bc8df4762.zip
rockbox-3036a2a2e290fc390c04c024bf96257bc8df4762.tar.gz
rockbox-3036a2a2e290fc390c04c024bf96257bc8df4762.tar.bz2
rockbox-3036a2a2e290fc390c04c024bf96257bc8df4762.tar.xz
Use the correct constant to avoid confusion
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12476 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/drivers/fat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c
index 373d450..5e1124f 100644
--- a/firmware/drivers/fat.c
+++ b/firmware/drivers/fat.c
@@ -1460,7 +1460,7 @@ static void randomize_dos_name(unsigned char *name)
num[7-(unsigned int)(tilde-name)] = 0;
cnt = atoi(num) + 1;
}
- cnt %= 9999999; /* protection */
+ cnt %= 10000000; /* protection */
snprintf(num, 9, "~%d", cnt); /* allow room for trailing zero */
numlen = strlen(num); /* required space */
offset = (unsigned int)(lastpt ? lastpt - name : 8); /* prev startpoint */