xkbcomp: simplify buffer handling in the include handling
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 10 Jul 2020 05:01:31 +0000 (15:01 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 13 Jul 2020 08:41:00 +0000 (18:41 +1000)
commitd4b78a5fca47c27aac4cea0220ad595c3312807f
treea0f2823c75d781dec159d55b4d587a69cb492974
parent41a7c975f8e5d1f4e74fd945f6f1aecc9ef4b498
xkbcomp: simplify buffer handling in the include handling

Don't do the realloc dance, just asprintf to the buffer and move on. The check
is likely pointless anyway, if we run out of asprintf size, log_error will
probably blow up as well.

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