diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-08-08 02:26:57 +0200 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-08-08 03:05:28 +0200 |
commit | d21b9fb48d959c4cd8f6041ef701e0236b4ec39b (patch) | |
tree | 8e5dfd6de5064cdd5e83cfecc64533a477e874a9 | |
parent | 7ae3b6544091363334142df775708e1ea88bc9bc (diff) | |
download | ratpoison-d21b9fb48d959c4cd8f6041ef701e0236b4ec39b.zip |
In cmd_sfrestore don't pass screen number to frestore.
Noticed by Repolho <repolho at zoho dot com>, who came with a similar
fix.
-rw-r--r-- | src/actions.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/actions.c b/src/actions.c index 3f9691e..b689f67 100644 --- a/src/actions.c +++ b/src/actions.c @@ -5543,6 +5543,9 @@ cmd_sfrestore (int interactively UNUSED, struct cmdarg **args) /* convert to integer */ x = strtol (ptr, NULL, 10); + /* clobber screen number here, frestore() doesn't need it */ + *ptr = '\0'; + /* check that specified screen number is not bigger than current number of connected screens */ if (x < num_screens) { /* append frameset to buffer[x] */ |