libDtHelp: Coverity 88440

This commit is contained in:
Peter Howkins
2018-07-04 01:40:12 +01:00
parent 1fb5110337
commit adb9a3d8cd

View File

@@ -179,7 +179,7 @@ _DtHelpFileTraceLinks (
if ( NULL == *pPathName ) return False; /* RETURN */ if ( NULL == *pPathName ) return False; /* RETURN */
/* init */ /* init */
strcpy(buf[0],*pPathName); snprintf(buf[0], sizeof(buf[0]), "%s", *pPathName);
linkPath = buf[0]; /* will be assigned to filePath below */ linkPath = buf[0]; /* will be assigned to filePath below */
curBuf = 1; /* next valid buf */ curBuf = 1; /* next valid buf */