mirror of
https://github.com/flatpak/flatpak.git
synced 2026-06-07 16:16:49 -04:00
This function helpfully does not 0-terminate the buffer, so we have to do that ourselves. Also make the buffer as large as possibly required, and handle errors. Closes: #2630 Approved by: matthiasclasen