diff options
-rw-r--r-- | mycan.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -106,12 +106,12 @@ int main(int argc, char **argv) remain=offset%ENTRY_SIZE; if(remain) { - printf(".csv file not a multiple of %d, remove last line\n",ENTRY_SIZE); + printf("Corrupted .csv file not a multiple of %d, removing last line\n",ENTRY_SIZE); truncate(filename,offset-remain); } else if(ch != '\n') { - printf(".csv file last char not newline, remove last line\n"); + printf("Corrupted .csv file last char not newline, removing last line\n"); truncate(filename,offset-ENTRY_SIZE); } } |