hexout: add proper terminator record.

This commit is contained in:
Daniel Beer 2013-01-31 15:35:57 +13:00
parent 7113fd2e50
commit ad420dbb93
1 changed files with 6 additions and 0 deletions

View File

@ -484,6 +484,12 @@ int cmd_hexout(char **arg)
if (hexout_flush(&hexout) < 0) if (hexout_flush(&hexout) < 0)
goto fail; goto fail;
if (fprintf(hexout.file, ":00000001FF\n") < 0) {
pr_error("hexout: failed to write terminator\n");
goto fail;
}
if (fclose(hexout.file) < 0) { if (fclose(hexout.file) < 0) {
pr_error("hexout: error on close"); pr_error("hexout: error on close");
return -1; return -1;