# HG changeset patch # User Chris Cannam # Date 1664540652 -3600 # Fri Sep 30 13:24:12 2022 +0100 # Node ID 137ef076894f20b488a65ba2c755219b8ea8cd2c # Parent d5e900a71021d7b115b50d54ef4fc47d27fa0217 Fix incorrect extension calculation diff --git a/main/main.cpp b/main/main.cpp --- a/main/main.cpp +++ b/main/main.cpp @@ -538,11 +538,13 @@ for (int i = strlen(fileName); i > 0; ) { if (fileName[--i] == '.') { extIn = fileName + i + 1; + break; } } for (int i = strlen(fileNameOut); i > 0; ) { if (fileNameOut[--i] == '.') { extOut = fileNameOut + i + 1; + break; } }