From: Peter Howkins Date: Wed, 4 Jul 2018 00:32:53 +0000 (+0100) Subject: libDtHelp: Coverity 88813 X-Git-Tag: 2.3.0a~213 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=25c12cad4a28d6578878eb8fad090a93f32f436e;p=oweals%2Fcde.git libDtHelp: Coverity 88813 --- diff --git a/cde/lib/DtHelp/AccessCCDF.c b/cde/lib/DtHelp/AccessCCDF.c index f9b135e3..11bff490 100644 --- a/cde/lib/DtHelp/AccessCCDF.c +++ b/cde/lib/DtHelp/AccessCCDF.c @@ -908,7 +908,7 @@ _DtHelpCeFindCcdfId ( char *topicId = NULL; int found = False; - strcpy (newTarget, target_id); + snprintf(newTarget, sizeof(newTarget), "%s", target_id); _DtHelpCeUpperCase(newTarget); /*