aboutsummaryrefslogtreecommitdiffstats
path: root/swaybg/meson.build
diff options
context:
space:
mode:
authorLibravatar Dominique Martinet <asmadeus@codewreck.org>2018-07-01 22:46:48 +0900
committerLibravatar Dominique Martinet <asmadeus@codewreck.org>2018-07-02 08:03:41 +0900
commitc78ab67877e15e4bbbdfd4e8bb7f94309980489b (patch)
tree8811560930cc848dee2044aa729e4060c10e75e0 /swaybg/meson.build
parentfind prev/next output/workspace: add NULL check (diff)
downloadsway-c78ab67877e15e4bbbdfd4e8bb7f94309980489b.tar.gz
sway-c78ab67877e15e4bbbdfd4e8bb7f94309980489b.tar.zst
sway-c78ab67877e15e4bbbdfd4e8bb7f94309980489b.zip
workspace_next_name: fix string length for ws_num >= 100
The check didn't include && ws_num < 100 so l would always be 1 or 2 Instead of fixing logic it's simpler to just call snprintf twice to get length and use that. Also change malloc failure check to sway_assert because both callers of this function do not do null check and would segfault... Found through static analysis.
Diffstat (limited to 'swaybg/meson.build')
0 files changed, 0 insertions, 0 deletions