dthelp: more coverity fixes

This commit is contained in:
Peter Howkins
2018-04-11 02:07:55 +01:00
parent f4e3cb8327
commit 10468068ac
9 changed files with 14 additions and 7 deletions

View File

@@ -72,8 +72,7 @@ void entout(fname)
int nameindex ;
LOGICAL start ;
strncpy(efilename, fname, ENTFILENAME) ;
strncpy(&efilename[strlen(efilename)], ".h", 2) ;
snprintf(efilename, sizeof(efilename), "%s.h", fname);
m_openchk(&entfile, efilename, "w") ;
fprintf(entfile, "#include \"entdef.h\"\n") ;