1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r5356: fixed the hex coding for nbt names

(This used to be commit e467715c63)
This commit is contained in:
Andrew Tridgell 2005-02-12 03:10:50 +00:00 committed by Gerald (Jerry) Carter
parent 12ccb3c453
commit 907d1d413d

View File

@ -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;
}
}