Allow ispunct() as well as isalnum() when parsing initial window names.

This commit is contained in:
nicm 2017-07-21 12:58:02 +00:00
parent 11e2af6df7
commit e0d49ad758

View File

@ -151,7 +151,9 @@ parse_window_name(const char *in)
if (*name != '\0') {
ptr = name + strlen(name) - 1;
while (ptr > name && !isalnum((u_char)*ptr))
while (ptr > name &&
!isalnum((u_char)*ptr) &&
!ispunct((u_char)*ptr))
*ptr-- = '\0';
}