diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2021-05-06 16:49:09 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2021-05-06 16:49:09 -0400 |
commit | 41ba28892a04ab8a35a2751b4b7801414706f284 (patch) | |
tree | f914fca18ecc3bdb8211efeba9aff6bdec994892 /include | |
parent | c429ae2f0790c3486e7e420f4f2883c6a530ccf0 (diff) | |
download | cleanpath-41ba28892a04ab8a35a2751b4b7801414706f284.tar.gz |
Forget about ARG_MAX. The likelihood of accepting an unfathomably large input from the environment is pretty low
Diffstat (limited to 'include')
-rw-r--r-- | include/cleanpath.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/cleanpath.h b/include/cleanpath.h index 321f921..6d50db4 100644 --- a/include/cleanpath.h +++ b/include/cleanpath.h @@ -36,6 +36,11 @@ #define CLEANPATH_VAR "PATH" #define CLEANPATH_SEP ":" +#if OS_WINDOWS +#undef CLEANPATH_SEP +#define CLEANPATH_SEP ";" +#endif + struct CleanPath { char *data; // Pointer to the path string size_t data_len; // Length of the path string |