From: Peter Howkins Date: Wed, 4 Jul 2018 00:40:12 +0000 (+0100) Subject: libDtHelp: Coverity 88440 X-Git-Tag: 2.3.0a~209 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=adb9a3d8cd6973c3408bb494431c9abc913ff10e;p=oweals%2Fcde.git libDtHelp: Coverity 88440 --- 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 */