From 20f865521a6c3dafae85533a490c483621440e73 Mon Sep 17 00:00:00 2001 From: "Coren[m]" Date: Thu, 12 Sep 2013 14:19:22 +0200 Subject: nTox.c: - correct a message who claims we're going to exit when we actually aren't - don't treat a failed close on reading the data file as failure of the reading --- testing/nTox.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'testing') diff --git a/testing/nTox.c b/testing/nTox.c index 74702697..9f6d8233 100644 --- a/testing/nTox.c +++ b/testing/nTox.c @@ -496,7 +496,7 @@ int load_data(Tox *m) uint8_t data[size]; if (fread(data, sizeof(uint8_t), size, data_file) != size) { - fputs("[!] could not read data file! exiting...\n", stderr); + fputs("[!] could not read data file!\n", stderr); return 0; } @@ -504,7 +504,8 @@ int load_data(Tox *m) if (fclose(data_file) < 0) { perror("[!] fclose failed"); - return 0; + /* we got it open and the expected data read... let it be ok */ + /* return 0; */ } return 1; -- cgit v1.2.3