summaryrefslogtreecommitdiff
path: root/source3/lib/util_str.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util_str.c')
-rw-r--r--source3/lib/util_str.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 0e7a7c02f5..3a77098e09 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -132,8 +132,8 @@ char **toktocliplist(int *ctok, char *sep)
int StrCaseCmp(const char *s, const char *t)
{
pstring buf1, buf2;
- unix_strlower(s, strlen(s)+1, buf1, sizeof(buf1));
- unix_strlower(t, strlen(t)+1, buf2, sizeof(buf2));
+ unix_strupper(s, strlen(s)+1, buf1, sizeof(buf1));
+ unix_strupper(t, strlen(t)+1, buf2, sizeof(buf2));
return strcmp(buf1,buf2);
}
@@ -142,10 +142,10 @@ int StrCaseCmp(const char *s, const char *t)
********************************************************************/
int StrnCaseCmp(const char *s, const char *t, size_t n)
{
- pstring buf1, buf2;
- unix_strlower(s, strlen(s)+1, buf1, sizeof(buf1));
- unix_strlower(t, strlen(t)+1, buf2, sizeof(buf2));
- return strncmp(buf1,buf2,n);
+ pstring buf1, buf2;
+ unix_strupper(s, strlen(s)+1, buf1, sizeof(buf1));
+ unix_strupper(t, strlen(t)+1, buf2, sizeof(buf2));
+ return strncmp(buf1,buf2,n);
}
/*******************************************************************