From 41ba28892a04ab8a35a2751b4b7801414706f284 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 6 May 2021 16:49:09 -0400 Subject: Forget about ARG_MAX. The likelihood of accepting an unfathomably large input from the environment is pretty low --- include/cleanpath.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/cleanpath.h') 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 -- cgit