From: Jon Trulson Date: Sun, 1 Apr 2018 00:53:29 +0000 (-0600) Subject: dtinfo/OutlineListViewMotif.C: coverity CID 87754; memset truncated X-Git-Tag: 2.2.4a~155 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=05773d7499c1cf4e56916e810723b0d8b01f394b;p=oweals%2Fcde.git dtinfo/OutlineListViewMotif.C: coverity CID 87754; memset truncated --- diff --git a/cde/programs/dtinfo/dtinfo/src/Agents/OutlineListViewMotif.C b/cde/programs/dtinfo/dtinfo/src/Agents/OutlineListViewMotif.C index c4a24149..5abb7405 100644 --- a/cde/programs/dtinfo/dtinfo/src/Agents/OutlineListViewMotif.C +++ b/cde/programs/dtinfo/dtinfo/src/Agents/OutlineListViewMotif.C @@ -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;