Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: How to copy a string safely and efficiently in C? Date: Mon, 05 Sep 2016 01:46:31 -0700 Organization: None to speak of Lines: 17 Message-ID: References: <0b30b0cc-f7c5-4928-8acb-56bf2364797b@googlegroups.com> <87fupitz86.fsf@bsb.me.uk> <5592dce1-cdc3-4eef-8d69-4d4d3f4556fb@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="2274"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180/fI0r8L/rf4TYn//1zTg" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:AaxJ9JC+aBKsdZ5P6lan3jzHsyk= sha1:MNb64cpBAdlo4xynVCjbSr4MRnQ= Xref: csiph.com comp.lang.c:93217 mark.bluemel@gmail.com writes: > On Monday, 5 September 2016 06:53:29 UTC+1, Keith Thompson wrote: [...] >> (I'm resisting the temptation to repeat the warning that simple > s/resisting/unsuccessfully resisting/ >> truncation isn't always the correct response to an overflow.) > > FTFY Good point (but unsuccessful resistance is still resistance, futile though it may be). -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"