projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3aac3c
)
dtwm: Coverity 88535
author
Peter Howkins
<flibble@users.sf.net>
Mon, 2 Jul 2018 19:58:16 +0000
(20:58 +0100)
committer
Peter Howkins
<flibble@users.sf.net>
Mon, 2 Jul 2018 19:58:16 +0000
(20:58 +0100)
cde/programs/dtwm/WmImage.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtwm/WmImage.c
b/cde/programs/dtwm/WmImage.c
index 0c043572e186a6323571dc2e9015ad30ee21a3a6..ab98c03feba04c4eb60c5d144137298c024022b3 100644
(file)
--- a/
cde/programs/dtwm/WmImage.c
+++ b/
cde/programs/dtwm/WmImage.c
@@
-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);
}