From 5907bac3af5dd59743ea319c9e2a92179cce24cf Mon Sep 17 00:00:00 2001 From: "Michael J. Kidd" Date: Mon, 25 Oct 2021 08:40:32 -0700 Subject: [PATCH] Fixed extension check logic --- src/startrails.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/startrails.cpp b/src/startrails.cpp index 9d4ff0802..ef810c7d3 100644 --- a/src/startrails.cpp +++ b/src/startrails.cpp @@ -329,7 +329,7 @@ int main(int argc, char* argv[]) { std::transform(extcheck.begin(), extcheck.end(), extcheck.begin(), [](unsigned char c) { return std::tolower(c); }); - if (extcheck.rfind(".png") == string::npos || + if (extcheck.rfind(".png") == string::npos && extcheck.rfind(".jpg") == string::npos) { fprintf(stderr, KRED "Output file '%s' is missing extension (.jpg or .png)\n\n",