From 1fb51103376ab677f20b727751254571197b8dbb Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 01:38:14 +0100 Subject: [PATCH] libDtHelp: 88550 --- cde/lib/DtHelp/FileListUtils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cde/lib/DtHelp/FileListUtils.c b/cde/lib/DtHelp/FileListUtils.c index 5b522780..727a4b15 100644 --- a/cde/lib/DtHelp/FileListUtils.c +++ b/cde/lib/DtHelp/FileListUtils.c @@ -237,8 +237,7 @@ static int ScanDirForFiles( if (pDir == NULL) return 0; /* RETURN */ /* build the pathname */ - strcpy (fullName, dirpath); - strcat (fullName, DirSlashStr); + snprintf(fullName, sizeof(fullName), "%s%s", dirpath, DirSlashStr); ptr = fullName + strlen (fullName); /* -- 2.25.1