aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_unixize.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_unixize.c')
-rw-r--r--src/c_unixize.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/c_unixize.c b/src/c_unixize.c
index 45ce8d5..c941102 100644
--- a/src/c_unixize.c
+++ b/src/c_unixize.c
@@ -101,15 +101,23 @@ main
nargv = u_get_nargv(&opts);
if (nargv != NULL) {
nargc = 0;
- while (argv[nargc] != NULL) {
+ while (argv[nargc + 1] != NULL) {
nargc++;
}
main(nargc, (const char**)nargv);
+ u_del_nargv(nargv);
}
chdir("../");
}
}
- /* printf("'%s' -> '%s'\n", og_files->filename, new_files->filename); */
+ if (opts.verbose == TRUE) {
+ dprintf(
+ STDOUT_FILENO,
+ "'%s' -> '%s'\n",
+ og_files->filename,
+ new_files->filename
+ );
+ }
/* rename(); */
og_files = og_files->next;
new_files = new_files->next;