From 6bd7d47fc013efa0271bc313590e024f86677295 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sun, 16 Sep 2018 04:43:06 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20file=20name=20when=20carry?= =?UTF-8?q?ing=20over=20last=20digit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/fileUtilities.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/fileUtilities.c b/src/utils/fileUtilities.c index 5a342f7..a75ee5d 100644 --- a/src/utils/fileUtilities.c +++ b/src/utils/fileUtilities.c @@ -48,7 +48,7 @@ void openNextFile() { //We need to transfer carry if necessary (e.g. .z09 to .z10), otherwise just increase last digit if (file.name[fileNameLength - 1] == '9') { file.name[fileNameLength - 2] += 1; - file.name[fileNameLength - 1] = 0; + file.name[fileNameLength - 1] = '0'; } else { file.name[fileNameLength - 1] += 1; }