Use safe_strcat
This commit is contained in:
parent
2983de4db4
commit
81954dfe28
1 changed files with 2 additions and 2 deletions
|
@ -623,8 +623,8 @@ void DOS_Drive_Cache::CreateShortName(CFileInfo* curDir, CFileInfo* info) {
|
|||
safe_strncpy(info->shortname, tmpName,
|
||||
tocopy < DOS_NAMELENGTH_ASCII ? tocopy + 1 : DOS_NAMELENGTH_ASCII);
|
||||
// Copy number
|
||||
strncat(info->shortname, "~", DOS_NAMELENGTH_ASCII - strlen(info->shortname) - 1);
|
||||
strncat(info->shortname, short_nr, DOS_NAMELENGTH_ASCII - strlen(info->shortname) - 1);
|
||||
safe_strcat(info->shortname, "~");
|
||||
safe_strcat(info->shortname, short_nr);
|
||||
|
||||
// Add (and cut) Extension, if available
|
||||
if (pos) {
|
||||
|
|
Loading…
Add table
Reference in a new issue