diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-02-12 03:10:50 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:09:45 -0500 |
commit | 907d1d413d8c907876ae832a462a21839ac3d19a (patch) | |
tree | c26e7c12b032a2b21a393a87cf5c3dda73d3e50c /source4 | |
parent | 12ccb3c453626181dcdae6ae52abf9aeb2eb8855 (diff) | |
download | samba-907d1d413d8c907876ae832a462a21839ac3d19a.tar.gz samba-907d1d413d8c907876ae832a462a21839ac3d19a.tar.bz2 samba-907d1d413d8c907876ae832a462a21839ac3d19a.zip |
r5356: fixed the hex coding for nbt names
(This used to be commit e467715c63624e165b79b37bd21b381d7a99d0fe)
Diffstat (limited to 'source4')
-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 da5205d818..adc66980c4 100644 --- a/source4/libcli/nbt/nbtname.c +++ b/source4/libcli/nbt/nbtname.c @@ -346,7 +346,7 @@ static const char *nbt_hex_encode(TALLOC_CTX *mem_ctx, const char *s) if (isalnum(s[i]) || strchr(valid_chars, s[i])) { ret[len++] = s[i]; } else { - snprintf(&ret[len], 3, "%02x", s[i]); + snprintf(&ret[len], 4, "%%%02x", (unsigned char)s[i]); len += 3; } } |