From: Peter Howkins Date: Mon, 2 Jul 2018 21:55:42 +0000 (+0100) Subject: libDtSearch: Coverity 86780 X-Git-Tag: 2.3.0a~254 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d7225fde79b13706227003ed211f10256ab0398a;p=oweals%2Fcde.git libDtSearch: Coverity 86780 --- 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) {