[PATCH] Remove clobber_region() etc

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Mar 22 01:30:40 MDT 2011


On Tue, Mar 22, 2011 at 08:27:13AM +0100, Volker Lendecke wrote:
> Just brainstorming: Is it possible to have a macro around
> strlcpy that finds the target size automatically and is only
> usable for static or stack-allocated arrays?

Add arrays in structures and others certainly as well. I
wanted it to not work on malloc'ed pointers where it's not
possible to determine the target size.

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen


More information about the samba-technical mailing list