NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/41939: Fixing order of arguments.



The following reply was made to PR kern/41939; it has been noted by GNATS.

From: David Laight <david%l8s.co.uk@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/41939: Fixing order of arguments.
Date: Sun, 30 Aug 2009 20:20:37 +0100

 On Wed, Aug 26, 2009 at 07:00:01AM +0000, 
henning.petersen%t-online.de@localhost wrote:
 >              }
 > -            memcpy(pfi_buffer, p, pfi_buffer_cnt * sizeof(*pfi_buffer));
 > +            memcpy(p, pfi_buffer, pfi_buffer_max * sizeof(*pfi_buffer));
 >              /* no need to zero buffer */
 >              free(pfi_buffer, PFI_MTYPE);
 >              pfi_buffer = p;
 
 I suspect the length of the copy was correct - I guess pfi_buffer_cnt was
 the old number of entries and pfi_buffer_max is the new number.
 
        David
 
 -- 
 David Laight: david%l8s.co.uk@localhost
 


Home | Main Index | Thread Index | Old Index