From 09f187d6be930d18452aa3a3e0270d0177dba50e Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 01:55:44 +0100 Subject: [PATCH] dtprintinfo: Coverity 89669 --- cde/programs/dtprintinfo/libUI/MotifUI/Debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtprintinfo/libUI/MotifUI/Debug.c b/cde/programs/dtprintinfo/libUI/MotifUI/Debug.c index f9e01809..769371d4 100644 --- a/cde/programs/dtprintinfo/libUI/MotifUI/Debug.c +++ b/cde/programs/dtprintinfo/libUI/MotifUI/Debug.c @@ -149,7 +149,7 @@ PrintXError( ext = ext->next) ; if (ext) - strcpy(buffer, ext->name); + snprintf(buffer, sizeof(buffer), "%s", ext->name); else buffer[0] = '\0'; } -- 2.25.1