[libvirt] [PATCH] Prohibit verbose strcat

Andrea Bolognani abologna at redhat.com
Thu Feb 11 09:12:42 UTC 2016


On Thu, 2016-02-11 at 07:43 +0100, Ján Tomko wrote:
> > > + halt='Use strcat(a, b) instead of strncat(a, b, strlen())' \
> > 
> > s/strlen()/strlen(b)/
> 
> That would make it match itself, so I limited the check to C files
> in_vc_files='\.[ch]$$'

Which is a good idea anyway, I guess :)

Cheers.

-- 
Andrea Bolognani
Software Engineer - Virtualization Team




More information about the libvir-list mailing list