diff options
author | 2020-03-24 10:07:12 -0500 | |
---|---|---|
committer | 2020-03-24 16:07:12 +0100 | |
commit | 854497b242b78f14f990a04d2c1fed14b03ee33b (patch) | |
tree | 10916925fdae84fc9ceb95c8b4f117d8ab83cc59 /common/util.c | |
parent | Fix redundant call to seat_send_focus() (diff) | |
download | sway-854497b242b78f14f990a04d2c1fed14b03ee33b.tar.gz sway-854497b242b78f14f990a04d2c1fed14b03ee33b.tar.zst sway-854497b242b78f14f990a04d2c1fed14b03ee33b.zip |
check for workspace command name arg
* check for workspace command name arg (fix #5131)
For the 'workspace <name> output <output>' command, output_location must
be greater than zero or the attempt to get the workspace name with
join_args will segfault or abort() (depending on the flavor of
sway_assert() in use). This checks and returns an error instead.
* put workspace output error string on one line
To ease grepping as requested
* check for name in workspace gaps command as well
A malformed command here will lead to the same result seen in #5131, so
add a check. Done inside the cmd_workspace_gaps() function itself, to
take advantage of the existing 'Expected...' string.
Diffstat (limited to 'common/util.c')
0 files changed, 0 insertions, 0 deletions