#47 netbios information not found

ver_2.x
open
Anton Keks
5
2012-09-14
2003-12-09
Anonymous
No

On some computers, netbios information cannot be
retrieved
In netbiosutils.cpp, line 80, buf size is 1000. If
the netbios information is longer than 1000 (for
example with messenger) , nRetBufSize is -1 after
recvfrom call.
I would suggest to change the buf size to at least
3000, allocate it dynamically and reallocate it in
case of size fail, or at least to add the length as
an option in the interface.

I've got the source code from cvs, changed the size
to 3000, and it fixed the bug for me.

my email : chris51@guignol.com

Discussion