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:
parent
12ccb3c453
commit
907d1d413d
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user