dtwm: Coverity 88535
This commit is contained in:
parent
c3aac3cc26
commit
e0d8aaa0dd
|
|
@ -989,8 +989,7 @@ char *BitmapPathName (char *string)
|
|||
* Handle "~/.."
|
||||
*/
|
||||
{
|
||||
strcpy (fileName, homeDir);
|
||||
strncat (fileName, &(string[1]), MAXWMPATH - strlen (fileName));
|
||||
snprintf(fileName, MAXWMPATH, "%s%s", homeDir, &(string[1]));
|
||||
return (fileName);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue