diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-05-18 15:35:21 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-05-18 15:35:21 +0000 |
commit | 7511fbf993271312875d0648166694cc58117060 (patch) | |
tree | 57e08c4ab87356af3149d328cf56582ae8ad54a4 /src/common/util.h | |
parent | 9da1714676c018e1b4a8c5b52c7be7a5a6579243 (diff) | |
download | tor-7511fbf993271312875d0648166694cc58117060.tar.gz tor-7511fbf993271312875d0648166694cc58117060.zip |
Resolve some XXXs
svn:r1889
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common/util.h b/src/common/util.h index 04811abfa1..6f707ca729 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -77,10 +77,12 @@ #define tor_close_socket(s) close(s) #endif - -/* XXXX This isn't so on windows. */ /** Legal characters in a filename */ -#define CONFIG_LEGAL_FILENAME_CHARACTERS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_/" +#ifdef MS_WINDOWS +#define CONFIG_LEGAL_FILENAME_CHARACTERS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_/\\ " +#else +#define CONFIG_LEGAL_FILENAME_CHARACTERS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_/ " +#endif size_t strlcat(char *dst, const char *src, size_t siz); size_t strlcpy(char *dst, const char *src, size_t siz); |