finally got around to including malloc and actually returning the path string from the envtest call. Bitched a lot about strlcat not being in glibc (and believe me I mean a lot... I even tried to bundle it but I don't fully understand how to do so yet I guess, so just using strcat but with a hard-coded string for now, till I can either learn strncat or make my own implementation of strlcat :/)