From adb9a3d8cd6973c3408bb494431c9abc913ff10e Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 01:40:12 +0100 Subject: [PATCH] libDtHelp: Coverity 88440 --- cde/lib/DtHelp/FileUtils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/lib/DtHelp/FileUtils.c b/cde/lib/DtHelp/FileUtils.c index 201e28f4..5846dec2 100644 --- a/cde/lib/DtHelp/FileUtils.c +++ b/cde/lib/DtHelp/FileUtils.c @@ -179,7 +179,7 @@ _DtHelpFileTraceLinks ( if ( NULL == *pPathName ) return False; /* RETURN */ /* init */ - strcpy(buf[0],*pPathName); + snprintf(buf[0], sizeof(buf[0]), "%s", *pPathName); linkPath = buf[0]; /* will be assigned to filePath below */ curBuf = 1; /* next valid buf */ -- 2.25.1