9 messages in com.xensource.lists.xen-ia64-develRe: [Xen-devel] [PATCH] Clean up and ...
FromSent OnAttachments
Aron Griffis29 Jan 2007 17:10 
Christoph Egger30 Jan 2007 00:22 
Keir Fraser30 Jan 2007 01:32 
Aron Griffis30 Jan 2007 05:47 
Christoph Egger30 Jan 2007 06:01 
Christoph Egger30 Jan 2007 07:26 
Keir Fraser30 Jan 2007 07:46 
Alex Williamson30 Jan 2007 09:29 
Keir Fraser30 Jan 2007 09:36 
Subject:Re: [Xen-devel] [PATCH] Clean up and fix errors in strncpy -> strlcpy conversion
From:Keir Fraser (Keir@cl.cam.ac.uk)
Date:01/30/2007 01:32:00 AM
List:com.xensource.lists.xen-ia64-devel

On 30/1/07 08:23, "Christoph Egger" <Chri@amd.com> wrote:

In my patch, safe_strcpy() is gone. And anyway, if safe_strcpy works as expected, then apart from the return value there's no difference to strlcpy().

I kept safe_strcpy() now implemented over strlcpy() and returns non-zero if the result is truncated. When writing into a char array this is less redundant than writing (strlcpy(d,s,sizeof(d) >= sizeof(d)) where 'd' is often some annoyingly long structural name.

-- Keir