Merge pull request #1899 from Airblader/bug-swallowed-percent

Fix incorrect swallow of percent sign
This commit is contained in:
Michael Stapelberg 2015-09-05 20:14:05 +02:00
commit 5370678d81
1 changed files with 2 additions and 0 deletions

View File

@ -396,6 +396,8 @@ i3String *window_parse_title_format(i3Window *win) {
} else if (STARTS_WITH(walk + 1, "instance")) { } else if (STARTS_WITH(walk + 1, "instance")) {
outwalk += sprintf(outwalk, "%s", escaped_instance); outwalk += sprintf(outwalk, "%s", escaped_instance);
walk += strlen("instance"); walk += strlen("instance");
} else {
*(outwalk++) = *walk;
} }
} }
*outwalk = '\0'; *outwalk = '\0';