diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/fat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index f76b10c078..51b0cba372 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c | |||
@@ -1596,9 +1596,9 @@ static void randomize_dos_name(unsigned char *name) | |||
1596 | while(i++ < 8) | 1596 | while(i++ < 8) |
1597 | { | 1597 | { |
1598 | /* hunt for ~ and where to put it */ | 1598 | /* hunt for ~ and where to put it */ |
1599 | if((!tilde) && (*nameptr == '~')) | 1599 | if(!tilde && *nameptr == '~') |
1600 | tilde = nameptr; | 1600 | tilde = nameptr; |
1601 | if((!lastpt) && ((*nameptr == ' ' || *nameptr == '~'))) | 1601 | if(!lastpt && (*nameptr == ' ' || *nameptr == '~')) |
1602 | lastpt = nameptr; | 1602 | lastpt = nameptr; |
1603 | nameptr++; | 1603 | nameptr++; |
1604 | } | 1604 | } |