winpr/sspi/ntlm: fix computer name len calculation
authorNorbert Federa <norbert.federa@thincast.com>
Thu, 30 Jun 2016 15:15:40 +0000 (17:15 +0200)
committerNorbert Federa <norbert.federa@thincast.com>
Thu, 30 Jun 2016 15:15:40 +0000 (17:15 +0200)
commit333a1110f5336412dfaa9ba2066160268907d305
tree729a7103c680f80b85959dc23e563d12d66cc94a
parentc42d2ef0d10608de42ac478f64d7c3ed5ee338af
winpr/sspi/ntlm: fix computer name len calculation

The lpnSize parameter for GetComputerNameEx specifies the total
size of the buffer (in characters).
However, the current code calculated the amount of bytes.
Since only GetComputerNameExA was used and because sizeof(CHAR) == 1
the result was correct but the math was wrong.
Credit goes to @byteboon
winpr/libwinpr/sspi/NTLM/ntlm.c
winpr/libwinpr/sspi/NTLM/ntlm_av_pairs.c