From bc6daf3f47edd4a37873fb7fc073e3e03dfd4701 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Sat, 24 Dec 2022 14:42:21 -0500
Subject: [PATCH] Only check the filename for a dot, not the whole cachepath

Fixes icon displays in RIPs that don't use the .ICN extension.
---
 src/syncterm/ripper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/syncterm/ripper.c b/src/syncterm/ripper.c
index 64f4fad945..484c895599 100644
--- a/src/syncterm/ripper.c
+++ b/src/syncterm/ripper.c
@@ -12606,7 +12606,7 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs)
 								break;
 							}
 							strcat(cache_path, &args[9]);
-							if (strchr(cache_path, '.') == NULL)
+							if (strchr(&args[9], '.') == NULL)
 								strcat(cache_path, ".ICN");
 							fexistcase(cache_path);
 							icn = fopen(cache_path, "rb");
-- 
GitLab