From mboxrd@z Thu Jan 1 00:00:00 1970 From: list at eworm.de (Christian Hesse) Date: Thu, 14 Feb 2019 23:41:19 +0100 Subject: [PATCH v2 1/1] ui-ssdiff: ban strncat() In-Reply-To: <20190213082901.meyuac432qvellvf@dcvr> References: <20190208214812.26937-1-list@eworm.de> <20190212205532.27161-1-list@eworm.de> <20190213082901.meyuac432qvellvf@dcvr> Message-ID: <20190214234007.5b1d9714@leda> Eric Wong on Wed, 2019/02/13 08:29: > Christian Hesse wrote: > > From: Christian Hesse > > > > Git version v2.21.0 marks strncat() as banned (commit > > ace5707a803eda0f1dde3d776dc3729d3bc7759a), so replace it. > > Btw, I posted a similar-in-spirit patch to replace strncat > in ui-ssdiff.c back in January: <20190102073710.580-1-e at 80x24.org> > > It uses strbuf and is close to code which already exists in > git.git, so it doesn't make calls to strlen() repeatedly. > > > (I'm also responsible for strncat banning in git.git :) Ah, nice... I saw this but forgot about it. :-p Jason, you are free to decide. ;) -- main(a){char*c=/* Schoene Gruesse */"B?IJj;MEH" "CX:;",b;for(a/* Best regards my address: */=0;b=c[a++];) putchar(b-1/(/* Chris cc -ox -xc - && ./x */b/42*2-3)*42);} -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 488 bytes Desc: OpenPGP digital signature URL: