Pass window titles through vis(1). <0x20 is dropped anyway by the input state

machine but top-bit-set nonprintables could cause trouble, and they are neater
like this anyway.

Suggested by deraadt a few days ago.
This commit is contained in:
Nicholas Marriott
2009-06-03 19:33:04 +00:00
parent 655a1aea6c
commit 2faec76afa
2 changed files with 7 additions and 2 deletions

View File

@ -475,7 +475,7 @@ input_state_string_next(u_char ch, struct input_ctx *ictx)
return;
}
if (ch >= 0x20 && ch != 0x7f) {
if (ch >= 0x20) {
if (input_add_string(ictx, ch) != 0)
input_state(ictx, input_state_first);
return;