dnsapi: Fix a buffer overrun (Coverity).

This commit is contained in:
Hans Leidekker 2006-07-10 22:18:50 +02:00 committed by Alexandre Julliard
parent cc7118594d
commit dfd22085bb
1 changed files with 1 additions and 1 deletions

View File

@ -496,7 +496,7 @@ static DNS_STATUS dns_do_query_netbios( PCSTR name, DNS_RECORDA **recp )
memset( ncb.ncb_callname, ' ', sizeof(ncb.ncb_callname) );
memcpy( ncb.ncb_callname, name, len );
ncb.ncb_callname[NCBNAMSZ] = '\0';
ncb.ncb_callname[NCBNAMSZ - 1] = '\0';
ret = Netbios( &ncb );
if (ret != NRC_GOODRET) return ERROR_INVALID_NAME;