Backport !2451 “glib: fix buffer overflow in g_canonicalize_filename()” to glib-2-70
The output pointer must not go past the ending \0.
warning: HEAP[testglib.exe]: warning: Heap block at 0000011EA35745A0 modified at 0000011EA35745BF past requested size of f
Fixes commit 9a30a495 "gfileutils: Improve performance of g_canonicalize_filename()"
Signed-off-by: Marc-André Lureau marcandre.lureau@redhat.com
Trivial backport of !2451 (merged) to glib-2-70
.