From: Peter Howkins Date: Wed, 4 Jul 2018 00:55:44 +0000 (+0100) Subject: dtprintinfo: Coverity 89669 X-Git-Tag: 2.3.0a~202 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=09f187d6be930d18452aa3a3e0270d0177dba50e;p=oweals%2Fcde.git dtprintinfo: Coverity 89669 --- 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'; }