dthelp: compiler warning and coverity warning fixes

This commit is contained in:
Peter Howkins
2018-03-29 00:21:44 +01:00
parent 50a96959f0
commit e12e009eb5
14 changed files with 68 additions and 34 deletions

View File

@@ -204,7 +204,7 @@ int _DtHPrGenFileOrPrint(
}
/* put the shell print script in there */
sprintf(printCommand,"%s", options->shCommand,True);
sprintf(printCommand,"%s", options->shCommand);
/* set all the options that are IPC to the print script */
PutOpt(printCommand,OPT_LPDEST,options->printer,True);
@@ -221,7 +221,7 @@ int _DtHPrGenFileOrPrint(
/* unlink(tmpfile); ** NOTE: don't unlink; let the printCommand do it */
/* note the DTPRINTFILEREMOVE env var setting above */
free(tmpfile);
return(status);
} /*$END$*/