Fix incorrect extension calculation
1 files changed, 2 insertions(+), 0 deletions(-)

M main/main.cpp
M main/main.cpp +2 -0
@@ 538,11 538,13 @@ int main(int argc, char **argv)
     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;
         }
     }