mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-10-09 01:56:35 -05:00
Static Code Analysis : Add check on the return of strtok inside mkfulldir_internal to avoid warning.
This commit is contained in:
1 parent
f3625a080f
commit
5c1db9d0e1
1 file changed
+8
-5
+8
-5
@@ -73,15 +73,18 @@ mkfulldir_internal (char *path)
|
|||||||
trail[0] = tokpath[0];
|
trail[0] = tokpath[0];
|
||||||
trail[1] = tokpath[1];
|
trail[1] = tokpath[1];
|
||||||
trail[2] = '\0';
|
trail[2] = '\0';
|
||||||
strcat (trail, token);
|
|
||||||
strcat (trail, "\\");
|
|
||||||
token = strtok (NULL, "\\/");
|
|
||||||
if (token)
|
if (token)
|
||||||
{ /* get share name */
|
{
|
||||||
strcat (trail, token);
|
strcat (trail, token);
|
||||||
strcat (trail, "\\");
|
strcat (trail, "\\");
|
||||||
|
token = strtok (NULL, "\\/");
|
||||||
|
if (token)
|
||||||
|
{ /* get share name */
|
||||||
|
strcat (trail, token);
|
||||||
|
strcat (trail, "\\");
|
||||||
|
}
|
||||||
|
token = strtok (NULL, "\\/");
|
||||||
}
|
}
|
||||||
token = strtok (NULL, "\\/");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tokpath[1] == ':')
|
if (tokpath[1] == ':')
|
||||||
|
|||||||
Reference in new issue
Block a user