mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-16 16:14:29 -04:00
[core] fix potential invalid label for non western locales
* If a converted label contains mostly underscore, the proposed label is used for FAT32 instead. However this label still has the KB/MB/GB symbols localized so it may be invalid. * Ensure that we use a non-localized version of the size when using such a label. * Closes #1506. * Also fix a VS2019 static analysis warning in net.c.
This commit is contained in:
parent
2442aaf76f
commit
3c75ca92b4
3 changed files with 15 additions and 9 deletions
|
@ -240,6 +240,7 @@ static char* GetShortName(const char* url)
|
|||
break;
|
||||
}
|
||||
}
|
||||
memset(short_name, 0, sizeof(short_name));
|
||||
static_strcpy(short_name, &url[i]);
|
||||
// If the URL is followed by a query, remove that part
|
||||
// Make sure we detect escaped queries too
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue