From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aron Griffis Subject: Re: [Xen-staging] [xen-unstable] ia64 and ppc: Remove uses of strcpy and strncpy. Date: Mon, 29 Jan 2007 18:53:57 -0500 Message-ID: <20070129235356.GC27235@fc.hp.com> References: <200701291502.l0TF2Md1000372@latara.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: <200701291502.l0TF2Md1000372@latara.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Additionally... Xen staging patchbot-unstable wrote: [Mon Jan 29 2007, 10:02:21AM EST] > --- a/xen/arch/ia64/xen/gdbstub.c Mon Jan 29 14:59:42 2007 +0000 > +++ b/xen/arch/ia64/xen/gdbstub.c Mon Jan 29 15:01:33 2007 +0000 > @@ -639,7 +639,7 @@ kgdb_get_reg(int regnum, struct unw_fram > outbuffer[size*2] = 0; > } > else > - strcpy(outbuffer, "E0"); > + strlcpy(outbuffer, "E0", sizeof("E0")); Better to use safe_strcpy here instead of duplicating