To me the argument to remove on line 221 and 233 of csvfix.c seem to be wrong. It should be: remove(argv[optind + 1]) Am I missing something ?