summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-02-12 03:10:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:45 -0500
commit907d1d413d8c907876ae832a462a21839ac3d19a (patch)
treec26e7c12b032a2b21a393a87cf5c3dda73d3e50c /source4
parent12ccb3c453626181dcdae6ae52abf9aeb2eb8855 (diff)
downloadsamba-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.c2
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;
}
}