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

pull/1014/head
nicm 2017-07-21 12:58:02 +00:00
parent 11e2af6df7
commit e0d49ad758
1 changed files with 3 additions and 1 deletions

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';
}