dtappbuilder: Coverity fixes for mising return value and copy into fixed size buffer
This commit is contained in:
@@ -431,7 +431,8 @@ objxm_xmstr_to_str(
|
||||
while(XmStringGetNextSegment(context, &seg,
|
||||
&char_set_tag, &dir, &sep))
|
||||
{
|
||||
p += (strlen(strcpy(p, seg)));
|
||||
snprintf(p, sizeof(buf), "%s", seg);
|
||||
p += (strlen(p));
|
||||
if (sep == TRUE)
|
||||
{
|
||||
*p++ = '\n';
|
||||
|
||||
Reference in New Issue
Block a user