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