swayfx/sway
Dominique Martinet c78ab67877 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.
2018-07-02 08:03:41 +09:00
..
commands output commands: move !argc checks after argc gets decremented 2018-07-02 08:03:41 +09:00
config invoke_swaybar: fix message length header size 2018-07-02 08:03:41 +09:00
desktop xdg_shell: listen to fullscreen request on map 2018-06-30 22:42:24 +09:00
input Merge remote-tracking branch 'upstream/master' into atomic 2018-06-29 20:04:24 +10:00
tree workspace_next_name: fix string length for ws_num >= 100 2018-07-02 08:03:41 +09:00
base64.c Rework get_clipboard implementation 2017-07-07 21:51:34 +02:00
commands.c config_commands_command: make alloc failure check more permanent 2018-07-02 08:03:41 +09:00
config.c Refactor everything that needs to arrange windows 2018-06-09 10:11:25 +10:00
criteria.c sway/criteria: gcc string truncation warning fix 2018-06-08 22:30:13 +09:00
debug-tree.c Add L_FLOATING back to debug tree 2018-06-01 23:14:58 +10:00
ipc-json.c Fix compilation errors related to disabled outputs 2018-06-09 11:38:16 +01:00
ipc-server.c ipc-server: fix more use-after-frees on ipc_send_reply error 2018-07-02 08:03:41 +09:00
main.c log_kernel: s/fclose/pclose/ (for popen'd FILE) 2018-07-02 08:03:41 +09:00
meson.build Merge remote-tracking branch 'upstream/master' into atomic 2018-06-29 20:04:24 +10:00
security.c Add minimal config subsystem 2017-12-05 10:40:55 +01:00
server.c Init screencopy manager 2018-07-01 22:55:25 +01:00
sway-bar.5.scd Add sway-bar(5) 2018-05-11 21:13:43 -04:00
sway-input.5.scd Add sway-input(5) 2018-05-11 21:25:05 -04:00
sway.1.scd Add sway(5) 2018-05-11 21:03:43 -04:00
sway.5.scd Support i3's legacy force_focus_wrapping command 2018-05-28 11:09:46 -04:00