[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: KERNEL: improve stubs for DnsHostnameToComputerName{A,W}
From:       Peter Berg Larsen <pebl () math ! ku ! dk>
Date:       2005-03-31 13:34:10
Message-ID: Pine.LNX.4.40.0503311531220.23958-100000 () shannon ! math ! ku ! dk
[Download RAW message or body]



On Thu, 31 Mar 2005, Peter Berg Larsen wrote:

> +    memcpy( computername, hostname, len );
> +    computername[len + 1] = 0;

> or you risk the computername[len+1] is invalid.

Hmm, why didnt I see that at once; usually mistake here.
Dont you mean

computername[len] = 0;

Peter


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic