Explorar el Código

Try to use stricmp variants that MSDN actually recommends

Per recommendation by Gisle Vanem
Nick Mathewson hace 6 años
padre
commit
fecb8214d5
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/lib/string/compat_string.h

+ 2 - 2
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