From: Bastian Dehn Date: Mon, 9 Aug 2021 20:30:18 +0000 (+0200) Subject: change: output number four digits X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=16770753c6d8c6dece0f55e06a999f044c2fc119;p=discspan.git change: output number four digits --- diff --git a/logic.c b/logic.c index 34724ec..79da719 100644 --- a/logic.c +++ b/logic.c @@ -41,9 +41,9 @@ void run(const char *input, const char *output, unsigned long long split) collection_t col = split_all(&srcdata); - char outname[strlen(output) + 3]; + char outname[strlen(output) + 4]; for (int i = 0; i < col.length; i++) { - sprintf(outname, "%s%03d", output, col.disc[i].nr); + sprintf(outname, "%s%04d", output, col.disc[i].nr); on_status_print(outname, col.disc[i]); write_output_file(outname, col.disc[i]); free(col.disc[i].filearray);