dtinfo/OutlineListViewMotif.C: coverity CID 87754; memset truncated
authorJon Trulson <jon@radscan.com>
Sun, 1 Apr 2018 00:53:29 +0000 (18:53 -0600)
committerJon Trulson <jon@radscan.com>
Sun, 1 Apr 2018 00:53:29 +0000 (18:53 -0600)
cde/programs/dtinfo/dtinfo/src/Agents/OutlineListViewMotif.C

index c4a24149c96dd920c6bb9ffce79b1c01433f1dbd..5abb7405178d7d2b4965788f09da738e15b95c39 100644 (file)
@@ -334,7 +334,7 @@ OutlineListView::create_xm_string (OutlineElement *oe, int base_level,
          }
        p++ ;
       }
-    memset (p, OLIAS_PLACEHOLDER_ICON, oe->level() - base_level);
+    memset (p, (unsigned char)OLIAS_PLACEHOLDER_ICON, oe->level() - base_level);
 
     unsigned int pos = oe->level() - base_level + track;