From 6333f796d0f2835f00e78f2637cbbc2e4104727b Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 16 Feb 2005 22:21:45 +0000 Subject: [PATCH] Shortnames must be uppercase... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5994 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/fat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index 65c6a3152e..80aaaa13b4 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c @@ -1503,7 +1503,7 @@ static void randomize_dos_name(unsigned char *name) int i; unsigned char buf[5]; - snprintf(buf, sizeof buf, "%04x", (unsigned)rand() & 0xffff); + snprintf(buf, sizeof buf, "%04X", (unsigned)rand() & 0xffff); for (i = 0; (i < 4) && (name[i] != ' '); i++); /* account for possible shortname length < 4 */