summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 5103bfc..41b6198 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -323,8 +323,13 @@ _em_get_filename(void)
323 else 323 else
324 snprintf(buf, sizeof(buf), "%s/%s%s", dir, file, ext); 324 snprintf(buf, sizeof(buf), "%s/%s%s", dir, file, ext);
325 } 325 }
326 else 326 else
327 snprintf(buf, sizeof(buf), "%s/%s", dir, file); 327 {
328 if (!strrchr(file, '.'))
329 snprintf(buf, sizeof(buf), "%s/%s.png", dir, file);
330 else
331 snprintf(buf, sizeof(buf), "%s/%s", dir, file);
332 }
328 } 333 }
329 } 334 }
330 335