dtprintinfo: Coverity 89669
authorPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 00:55:44 +0000 (01:55 +0100)
committerPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 00:55:44 +0000 (01:55 +0100)
cde/programs/dtprintinfo/libUI/MotifUI/Debug.c

index f9e0180908cc1cf5b148869b954e59b58a2d96f8..769371d46d1d54c887a2274d9f5fa1e8109330d1 100644 (file)
@@ -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';
       }