Menu

#147 Added EOL characters to some error messages

Bug
closed-accepted
5
2011-12-06
2011-10-18
dtoubelis
No

Here is small patch in order to fix error messages in tpm_unsealdata:

diff --git a/src/cmds/tpm_unsealdata.c b/src/cmds/tpm_unsealdata.c
index 0efb6bc..1820212 100644
--- a/src/cmds/tpm_unsealdata.c
+++ b/src/cmds/tpm_unsealdata.c
@@ -92,12 +92,12 @@ int main(int argc, char **argv)
printf("%c", tss_data[i]);
goto out;
} else if ((fp = fopen(out_filename, "w")) == NULL) {
- logError(_("Unable to open output file"));
+ logError(_("Unable to open output file\n"));
goto out;
}

if (fwrite(tss_data, tss_size, 1, fp) != 1) {
- logError(_("Unable to write output file"));
+ logError(_("Unable to write output file\n"));
goto out;
}
fclose(fp);

Discussion

  • Rajiv Andrade

    Rajiv Andrade - 2011-12-06
    • status: open --> closed-accepted
     
  • Rajiv Andrade

    Rajiv Andrade - 2011-12-06

    Applied to small-fixes branch, thanks.

     

Log in to post a comment.