1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

dtwm: Coverity 88535

This commit is contained in:
Peter Howkins 2018-07-02 20:58:16 +01:00
parent c3aac3cc26
commit e0d8aaa0dd

View file

@ -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);
}