diff options
author | Love Hörnquist Åstrand <lha@samba.org> | 2005-07-12 22:22:59 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:20:14 -0500 |
commit | 61edb97bdfabf1ab313fbec5f47f5e6c8a79da1a (patch) | |
tree | 7b554690182fd2be55ba76a793227c3d3e46064c /source4/libcli/nbt | |
parent | df426e5d4a33491c6b4bd8878ae3fbf29e728b5f (diff) | |
download | samba-61edb97bdfabf1ab313fbec5f47f5e6c8a79da1a.tar.gz samba-61edb97bdfabf1ab313fbec5f47f5e6c8a79da1a.tar.xz samba-61edb97bdfabf1ab313fbec5f47f5e6c8a79da1a.zip |
r8394: Make sure the argument to ctype is*(3) macros are unsigned char as
required by ISO C99.
(This used to be commit 56fd21c806e816cf4c3d23881f26474f858b45e2)
Diffstat (limited to 'source4/libcli/nbt')
-rw-r--r-- | source4/libcli/nbt/nbtname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/nbt/nbtname.c b/source4/libcli/nbt/nbtname.c index b59c24e7cff..36ffdc9af67 100644 --- a/source4/libcli/nbt/nbtname.c +++ b/source4/libcli/nbt/nbtname.c @@ -429,7 +429,7 @@ static const char *nbt_hex_encode(TALLOC_CTX *mem_ctx, const char *s) int i, len; char *ret; const char *valid_chars = "_-.$@ "; -#define NBT_CHAR_ALLOW(c) (isalnum(c) || strchr(valid_chars, c)) +#define NBT_CHAR_ALLOW(c) (isalnum((unsigned char)c) || strchr(valid_chars, c)) for (len=i=0;s[i];i++,len++) { if (!NBT_CHAR_ALLOW(s[i])) { |