diff options
| author | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2025-12-14 21:49:58 +0100 |
|---|---|---|
| committer | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2025-12-14 21:49:58 +0100 |
| commit | ad0780c7163c9673f89dc584d2a6096f317bec2b (patch) | |
| tree | 68a2b846e34dfc86944d76339400ecb40038e6e1 /contrib/dlmalloc/ssh:/git.fmsbw.de | |
| parent | 376c62bc63870fa1121548fc8b53271c21ed79a6 (diff) | |
avoid FILENAME_MAX for allocating on the stack
* FILENAME_MAX is a standard C macro, but it may be arbitrarily long on some platforms
(like the popular GNU/Hurd). See:
https://www.gnu.org/software/libc/manual/html_node/Limits-for-Files.html#index-FILENAME_005fMAX
* This means there is no portable macro for the maximum path length.
You could perhaps define PATH_MAX to MAX_PATH on Windows.
* Instead, we use g_strdup_printf() to calculate the save point name.
We avoid another g_build_filename() by prepending the directory in the printf().
Diffstat (limited to 'contrib/dlmalloc/ssh:/git.fmsbw.de')
0 files changed, 0 insertions, 0 deletions
