summaryrefslogtreecommitdiff
path: root/source3/lib/util_str.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-20 10:02:30 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-20 10:02:30 +0000
commit93d458c5f68a7168ce543e820906bc55a5d3a339 (patch)
treed12058b745c122f95c005b23047a32e716011ed0 /source3/lib/util_str.c
parent89f97bb254ac71b5fff8bf6d703578ac900c7ed1 (diff)
downloadsamba-93d458c5f68a7168ce543e820906bc55a5d3a339.tar.gz
samba-93d458c5f68a7168ce543e820906bc55a5d3a339.tar.bz2
samba-93d458c5f68a7168ce543e820906bc55a5d3a339.zip
fixed warnings on irix and crash bug on big endian machines
(This used to be commit cc6c263993eaf0715f231fc80ca7e6e65694548b)
Diffstat (limited to 'source3/lib/util_str.c')
-rw-r--r--source3/lib/util_str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 2205f5cf0d..14d50384c2 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -198,9 +198,9 @@ int strwicmp(const char *psz1, const char *psz2)
/* sync the strings on first non-whitespace */
while (1)
{
- while (isspace(*psz1))
+ while (isspace((int)*psz1))
psz1++;
- while (isspace(*psz2))
+ while (isspace((int)*psz2))
psz2++;
if (toupper(*psz1) != toupper(*psz2) || *psz1 == '\0'
|| *psz2 == '\0')