From a7e09ae1c320ac572543463b0d15139e005de075 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 01:36:03 +0100 Subject: [PATCH] libDtHelp: Coverity 88665 --- cde/lib/DtHelp/Environ_c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/lib/DtHelp/Environ_c.c b/cde/lib/DtHelp/Environ_c.c index 00792d98..516278db 100644 --- a/cde/lib/DtHelp/Environ_c.c +++ b/cde/lib/DtHelp/Environ_c.c @@ -107,7 +107,7 @@ char * _DtCliSrvGetDtUserSession(void) { char * s = strchr(display,':'); if (s && strlen(s) < (size_t)BUFSIZ) { - strcpy(screen,s+1); + snprintf(screen, sizeof(screen), "%s", s + 1); *s = 0; if ((s = strchr(screen,'.')) && *(s+1) == '0') *s = 0; -- 2.25.1