sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 839064d278e69ff4e29811440098d2ef527abf1c
parent d50e2429d751175aa710af54751600c0331e9699
Author: Drew DeVault <sir@cmpwn.com>
Date:   Tue,  3 Oct 2017 16:04:53 -0400

Merge pull request #1379 from karjonas/variable_matching

Fix issue #1287
Diffstat:
Msway/commands/set.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sway/commands/set.c b/sway/commands/set.c @@ -30,7 +30,7 @@ struct cmd_results *cmd_set(int argc, char **argv) { if (!tmp) { return cmd_results_new(CMD_FAILURE, "set", "Not possible to create variable $'%s'", argv[0]); } - snprintf(tmp, size, "$%s", argv[0]); + snprintf(tmp, size+1, "$%s", argv[0]); argv[0] = tmp; }