diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/fat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index 559d00b2b9..ed93f66cc9 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c | |||
@@ -1281,7 +1281,7 @@ static int add_dir_entry(struct fat_dir* dir, | |||
1281 | entries_found = 0; | 1281 | entries_found = 0; |
1282 | 1282 | ||
1283 | /* check that our intended shortname doesn't already exist */ | 1283 | /* check that our intended shortname doesn't already exist */ |
1284 | if (!strncmp(shortname, buf + i * DIR_ENTRY_SIZE, 12)) { | 1284 | if (!strncmp(shortname, buf + i * DIR_ENTRY_SIZE, 11)) { |
1285 | /* shortname exists already, make a new one */ | 1285 | /* shortname exists already, make a new one */ |
1286 | randomize_dos_name(shortname); | 1286 | randomize_dos_name(shortname); |
1287 | LDEBUGF("Duplicate shortname, changing to %s\n", | 1287 | LDEBUGF("Duplicate shortname, changing to %s\n", |