lidtsvc: coverity fixes

This commit is contained in:
Peter Howkins
2018-04-12 01:38:02 +01:00
parent 91bb9a037a
commit 691dffb076
17 changed files with 52 additions and 20 deletions

View File

@@ -33,6 +33,7 @@
*
*****************************************************************************/
#include <stdio.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -322,8 +323,8 @@ GetDisplayName (
/*
* Create the display name and append it to the current path.
*/
(void)strcpy(hostName, display->display_name);
(void)strcpy(displayName, display->display_name);
snprintf(hostName, sizeof(hostName), "%s", display->display_name);
snprintf(displayName, sizeof(displayName), "%s", display->display_name);
/*
* If this is run to unix or local get the host name - otherwise