Remove references to PATH_MAX macro
Since the macro PATH_MAX is not defined on every system (GNU/Hurd being one of those who do not define it), we remove all references to this macro. Instead, we use a buffer of arbitraty size and grow it when needed to contain paths.
This commit is contained in:
committed by
Michael Stapelberg
parent
4f5e0e794f
commit
f22995393a
@ -372,7 +372,8 @@ char *get_process_filename(const char *prefix);
|
||||
*
|
||||
* The implementation follows http://stackoverflow.com/a/933996/712014
|
||||
*
|
||||
* Returned value must be freed by the caller.
|
||||
*/
|
||||
const char *get_exe_path(const char *argv0);
|
||||
char *get_exe_path(const char *argv0);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user