Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Oct 1995 13:02:13 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        jc@irbs.com, terry@lambert.org
Cc:        freebsd-current@freefall.freebsd.org
Subject:   Re: phkmalloc and X programs
Message-ID:  <199510150302.NAA01708@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> lname is not NULL terminated unless malloc() returns zeroed memory.

>Not even then, unless the memory is uniformly overallocated, and the
>overallocated portion is zeroed as well as the requested portion.

>Looks like the malloc(namelen) should be a calloc(namelen + 1).

Is it already time for more lessons on the uselessness of calloc() :-).

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510150302.NAA01708>