keyboard: Fix insert_text() string utility
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 10 Jan 2014 07:39:20 +0000 (23:39 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 10 Jan 2014 07:39:20 +0000 (23:39 -0800)
commita548b4b85cfdbef103f622c3e3aaf976938535f9
treed194aa2988a37a857d062f4322df570b4fe52fb2
parentb0fb25dedce8ef13ad04d411b057e6f23b4e991c
keyboard: Fix insert_text() string utility

strncat() into a newly allocated buffer isn't well-defined.  I don't know
how this didn't crash all the time, getting blocks from malloc() with
a NUL in the first byte must be fairly common.

Closes: https://bugs.freedesktop.org/show_bug.cgi?id=71750
clients/keyboard.c