summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1997-07-22 19:04:40 +0000
committerSamba Release Account <samba-bugs@samba.org>1997-07-22 19:04:40 +0000
commita3de6a813ed058255f1e9b2da2aa181f5becc51f (patch)
treee73f409e495fa745aa601454b82809b1ac6a125c /source3/lib
parent0cdc68332df6beaa47307f730fda793bf295ef96 (diff)
downloadsamba-a3de6a813ed058255f1e9b2da2aa181f5becc51f.tar.gz
samba-a3de6a813ed058255f1e9b2da2aa181f5becc51f.tar.bz2
samba-a3de6a813ed058255f1e9b2da2aa181f5becc51f.zip
charset.c: Fixed signed/unsigned issues.
password.c: Fixed problem with MS-Exchange services. Jeremy (jallison@whistle.com) (This used to be commit e723dd3deec00a91568c5aa546374409ce7ba379)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/charset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/charset.c b/source3/lib/charset.c
index b463344daa..6b4f0b07bc 100644
--- a/source3/lib/charset.c
+++ b/source3/lib/charset.c
@@ -273,12 +273,12 @@ void add_char_string(char *s)
for (t=strtok(extra_chars," \t\r\n"); t; t=strtok(NULL," \t\r\n")) {
char c1=0,c2=0;
int i1=0,i2=0;
- if (isdigit(*t) || (*t)=='-') {
+ if (isdigit((unsigned char)*t) || (*t)=='-') {
sscanf(t,"%i:%i",&i1,&i2);
add_dos_char(i1,True,i2,True);
} else {
sscanf(t,"%c:%c",&c1,&c2);
- add_dos_char(c1,True,c2, True);
+ add_dos_char((unsigned char)c1,True,(unsigned char)c2, True);
}
}