sway: fix potential buffer overflow
sway: fix potential buffer overflow

SirCmpwn/sway,ascent12/sway,1ace/sway,ptMuta/sway,sleep-walker/sway,1ace/sway,4e554c4c/sway,ascent12/sway,taiyu-len/sway,ascent12/sway,mikkeloscar/sway,1ace/sway,taiyu-len/sway,4e554c4c/sway,mikkeloscar/sway,taiyu-len/sway,sleep-walker/sway,johalun/sway