From 5d72a3e04b10f487243565f5a281387118208af1 Mon Sep 17 00:00:00 2001 From: Fred Frey Date: Thu, 19 Sep 2024 15:28:10 -0400 Subject: [PATCH] fix xresources matching --- x.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/x.c b/x.c index e2ec9db..267b245 100644 --- a/x.c +++ b/x.c @@ -2229,10 +2229,8 @@ resource_load(XrmDatabase db, char *name, enum resource_type rtype, void *dst) char *type; XrmValue ret; - snprintf(fullname, sizeof(fullname), "%s.%s", - opt_name ? opt_name : "st", name); - snprintf(fullclass, sizeof(fullclass), "%s.%s", - opt_class ? opt_class : "St", name); + snprintf(fullname, sizeof(fullname), "%s.%s","st", name); + snprintf(fullclass, sizeof(fullclass), "%s.%s", "St", name); fullname[sizeof(fullname) - 1] = fullclass[sizeof(fullclass) - 1] = '\0'; XrmGetResource(db, fullname, fullclass, &type, &ret);