lua-users home
lua-l archive

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


On Sat, Aug 05, 2006 at 10:16:47AM -0400, John D. Ramsdell wrote:
>     else if (osize > nsize) {
> 	void *p = malloc(nsize);
> 	if (p == NULL)
> 	    return ptr;
> 	memcpy(p, ptr, osize);
how about using nsize here?