From 05773d7499c1cf4e56916e810723b0d8b01f394b Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sat, 31 Mar 2018 18:53:29 -0600 Subject: [PATCH] dtinfo/OutlineListViewMotif.C: coverity CID 87754; memset truncated --- cde/programs/dtinfo/dtinfo/src/Agents/OutlineListViewMotif.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1