Re: [dwm] Suggested diff

From: Jack J. Woehr <jwoehr_AT_absolute-performance.com>
Date: Mon, 11 Sep 2006 09:27:52 -0600

On Sep 11, 2006, at 12:10 AM, Anselm R. Garbe wrote:

> In dwm strcpy is only used when strncpy would provide
> no benefit. It is knows that sizeof(stext) > strlen("broken pipe"),
> thus there is no justification to use str{n,l}cpy in such
> situations, because strcpy is only used when the size of the copied
> string is really known at compile time - you won't find any use
> of strcpy of values supplied from stdin.

Your consistency in design is very aesthetically pleasing! If one
codes in such a fashion, problems which are meant to be addressed
by library routines like strlcpy() do not occur. Nice.

-- 
Jack J. Woehr
Director of Development
Absolute Performance, Inc.
jwoehr_AT_absolute-performance.com
303-443-7000 ext. 527
Received on Mon Sep 11 2006 - 17:28:10 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:31:13 UTC