summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2017-10-03 16:04:53 -0400
committerLibravatar GitHub <noreply@github.com>2017-10-03 16:04:53 -0400
commit839064d278e69ff4e29811440098d2ef527abf1c (patch)
treeeab3272496f6cfc3820f0c17dc9efcbb7a60a633
parentUpdate README et al with new links (diff)
parentFix issue #1287 (diff)
downloadsway-839064d278e69ff4e29811440098d2ef527abf1c.tar.gz
sway-839064d278e69ff4e29811440098d2ef527abf1c.tar.zst
sway-839064d278e69ff4e29811440098d2ef527abf1c.zip
Merge pull request #1379 from karjonas/variable_matching
Fix issue #1287
-rw-r--r--sway/commands/set.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/set.c b/sway/commands/set.c
index e3d08dd3..46fc6d38 100644
--- a/sway/commands/set.c
+++ b/sway/commands/set.c
@@ -30,7 +30,7 @@ struct cmd_results *cmd_set(int argc, char **argv) {
30 if (!tmp) { 30 if (!tmp) {
31 return cmd_results_new(CMD_FAILURE, "set", "Not possible to create variable $'%s'", argv[0]); 31 return cmd_results_new(CMD_FAILURE, "set", "Not possible to create variable $'%s'", argv[0]);
32 } 32 }
33 snprintf(tmp, size, "$%s", argv[0]); 33 snprintf(tmp, size+1, "$%s", argv[0]);
34 34
35 argv[0] = tmp; 35 argv[0] = tmp;
36 } 36 }