dtudcfonted: Resolve further coverity issues

This commit is contained in:
Peter Howkins
2018-03-30 22:09:47 +01:00
parent e507de959e
commit e195df4b50
20 changed files with 51 additions and 44 deletions

View File

@@ -274,6 +274,7 @@ int lockflag;
fal_utyerror = _FAL_OPEN_ER;
fal_utyderror = errno;
fal_utyerrno |= (FAL_FUNCNUM_OPNFNT<<8) ;
close( fd );
return (FalFontID)FAL_ERROR;
}
} else {
@@ -3086,7 +3087,7 @@ unsigned int *glidx ;
return FAL_ERROR;
}
GETCHARSETSTR( char_set, tmp_data.xlfdname ) ;
strcpy( charset_name, char_set ) ;
snprintf( charset_name, sizeof(charset_name), "%s", char_set ) ;
}
/*