dtappbuilder: Coverity fixes for mising return value and copy into fixed size buffer
This commit is contained in:
@@ -3939,6 +3939,8 @@ obj_get_pane_min( ABObj obj)
|
||||
return (obj->info.container.pane_min);
|
||||
if (obj_is_layers(obj))
|
||||
return (obj->info.layer.pane_min);
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
int
|
||||
@@ -3978,6 +3980,8 @@ obj_get_pane_max( ABObj obj)
|
||||
return (obj->info.container.pane_max);
|
||||
if (obj_is_layers(obj))
|
||||
return (obj->info.layer.pane_max);
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
@@ -715,9 +715,9 @@ ab_ident_from_file_name(STRING filename)
|
||||
if (filename != NULL)
|
||||
{
|
||||
if (p = (char *) strrchr(filename, '/'))
|
||||
strcpy(buf, p + 1);
|
||||
snprintf(buf, sizeof(buf), "%s", p + 1);
|
||||
else
|
||||
strcpy(buf, filename);
|
||||
snprintf(buf, sizeof(buf), "%s", filename);
|
||||
|
||||
if (p = (char *) strrchr(buf, '.'))
|
||||
*p = '\0';
|
||||
|
||||
Reference in New Issue
Block a user