clients: fix len-string formatting
authorPekka Paalanen <pekka.paalanen@collabora.com>
Mon, 23 Sep 2019 14:24:50 +0000 (17:24 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.com>
Mon, 23 Sep 2019 14:27:09 +0000 (17:27 +0300)
commit1ca4ed2015432283aa9999580f86a8d49d960e07
tree85d2f6a69bbe9028291051fdf5120b66357c4792
parente62f276a21ca60b8ab9a8d3baba4496d28875a3b
clients: fix len-string formatting

All these have the printf format string wrong. "%*s" sets the field width but
does not limit the string to len bytes. You need to set precision instead to
limit to len bytes: "%.*s".

Found by grepping, after wondering why my WIP prints printed garbage at the
end.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
clients/nested-client.c
clients/simple-dmabuf-egl.c
clients/simple-egl.c
clients/subsurfaces.c