From 77084d56e34887fe1b19f7ba9a9a5b2508af89e3 Mon Sep 17 00:00:00 2001 From: jozan Date: Fri, 6 Nov 2020 03:12:33 +0000 Subject: Must reparse options FossilOrigin-Name: 7a4169603246baa42e24eca59517253be703abdaf3eeac79829e4e8db0341506 --- src/c_unixize.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/c_unixize.c') 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; -- cgit v1.2.3