mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-02 20:21:59 -05:00
getcwd(NULL, ...) and realpath(path, NULL) returned the host path of a session mount whenever its guest path was longer than the host path, because the translation had to fit the buffer the C library allocated. Shells export that host path as PWD, and Wine prefers a valid PWD, so a program started from an added game folder on a removable card got a working directory it could not open and started in the Windows folder. Grow the allocated result to fit the guest path.