dtwm: Resolve coverity warnings

This commit is contained in:
Peter Howkins
2018-04-02 18:08:40 +01:00
parent 4b9bcae29f
commit 8362f92ceb
14 changed files with 39 additions and 46 deletions

View File

@@ -1081,7 +1081,7 @@ char *BitmapPathName (string)
strncat (fileName, &wmGD.bitmapDirectory[1],
MAXWMPATH - strlen (fileName));
} else {
strcpy (fileName, wmGD.bitmapDirectory);
snprintf(fileName, sizeof(fileName), "%s", wmGD.bitmapDirectory);
}
strncat (fileName, "/", MAXWMPATH - strlen (fileName));
strncat (fileName, string, MAXWMPATH - strlen (fileName));