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

@@ -1351,7 +1351,7 @@ static STRING
cvt_to_obj(STRING fileName)
{
static char buf[MAXPATHLEN] = "";
strcpy(buf, fileName);
snprintf(buf, sizeof(buf), "%s", fileName);
buf[strlen(buf)-1] = 'o';
return buf;
}