dtappbuilder: Coverity fixes for mising return value and copy into fixed size buffer

This commit is contained in:
Peter Howkins
2018-04-26 01:36:02 +01:00
parent 4007d3a460
commit bb9eef427f
29 changed files with 81 additions and 82 deletions

View File

@@ -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';