From a658f4ffaedd250f3011e34dcd92a9d061678db7 Mon Sep 17 00:00:00 2001 From: Matt Vollrath Date: Wed, 13 May 2020 16:32:41 -0400 Subject: [PATCH] Fix inconsistent WM_CLASS field truncation Fixes #1117 --- src/types.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/types.h b/src/types.h index 07c3093..5805e5d 100644 --- a/src/types.h +++ b/src/types.h @@ -208,9 +208,9 @@ struct icccm_props_t { }; typedef struct { - char class_name[3 * SMALEN / 2]; - char instance_name[3 * SMALEN / 2]; - char name[3 * SMALEN / 2]; + char class_name[MAXLEN]; + char instance_name[MAXLEN]; + char name[MAXLEN]; unsigned int border_width; bool urgent; bool shown; @@ -350,9 +350,9 @@ struct rule_t { }; typedef struct { - char class_name[3 * SMALEN / 2]; - char instance_name[3 * SMALEN / 2]; - char name[3 * SMALEN / 2]; + char class_name[MAXLEN]; + char instance_name[MAXLEN]; + char name[MAXLEN]; char monitor_desc[MAXLEN]; char desktop_desc[MAXLEN]; char node_desc[MAXLEN]; -- 2.44.0