diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-07-05 13:51:48 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-07-05 13:51:50 -0400 |
commit | fecb8214d5e95ad605e8b0d431bc332e07f2ad3f (patch) | |
tree | b3ff4deffa61ccc2dfb1008b160d00093a049328 /src/lib/string | |
parent | 2878dad9dbc1e07f608fa3acddc76261e4d76648 (diff) | |
download | tor-fecb8214d5e95ad605e8b0d431bc332e07f2ad3f.tar.gz tor-fecb8214d5e95ad605e8b0d431bc332e07f2ad3f.zip |
Try to use stricmp variants that MSDN actually recommends
Per recommendation by Gisle Vanem
Diffstat (limited to 'src/lib/string')
-rw-r--r-- | src/lib/string/compat_string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/string/compat_string.h b/src/lib/string/compat_string.h index 34490bce07..5879c28fc2 100644 --- a/src/lib/string/compat_string.h +++ b/src/lib/string/compat_string.h @@ -18,13 +18,13 @@ #ifndef HAVE_STRNCASECMP static inline int strncasecmp(const char *a, const char *b, size_t n); static inline int strncasecmp(const char *a, const char *b, size_t n) { - return strncmpi(a,b); + return _strnicmp(a,b,n); } #endif #ifndef HAVE_STRCASECMP static inline int strcasecmp(const char *a, const char *b, size_t n); static inline int strcasecmp(const char *a, const char *b, size_t n) { - return strcmpi(a,b); + return _stricmp(a,b); } #endif #endif |