From d7225fde79b13706227003ed211f10256ab0398a Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Mon, 2 Jul 2018 22:55:42 +0100 Subject: [PATCH] libDtSearch: Coverity 86780 --- cde/lib/DtSearch/ocf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cde/lib/DtSearch/ocf.c b/cde/lib/DtSearch/ocf.c index 3499ea08..61e78f40 100644 --- a/cde/lib/DtSearch/ocf.c +++ b/cde/lib/DtSearch/ocf.c @@ -1055,7 +1055,8 @@ OCFOPEN_OK: /* parse KEYWORD */ if ((token = _XStrtok(inbuf, DELIMITERS, strtok_buf)) == NULL) continue; - strcpy (uprtoken, token); + + snprintf(uprtoken, sizeof(uprtoken), "%s", token); strupr (uprtoken); if (strcmp (uprtoken, "PATH") == 0) { -- 2.25.1