text: init the target buffer to zero
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 23 Jul 2018 01:17:17 +0000 (11:17 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 1 Aug 2018 03:50:38 +0000 (13:50 +1000)
commit9045b035981e4273ddbb64bfb31577bbf92d8597
tree1739cc640ecf555e3e18990099fc485b29e02ae8
parent842e4351c2c97de6051cab6ce36b4a81e709a0e1
text: init the target buffer to zero

There's a (theoretical?) path where we might end up strcpy() buf without ever
writing to it. This happens if the mask is nonzero but specifies a modifier
larger than the one in the xkb_mod_set.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/text.c