Re: Bookmark bug patch


Subject: Re: Bookmark bug patch
From: Christian Biesinger (cbiesinger@web.de)
Date: Sun Jan 27 2002 - 08:03:03 CST


On Sun, Jan 27, 2002 at 02:39:43PM +0100, Adrian Phillips wrote:
> XML_Char name[BOOKMARK_NAME_SIZE + 1];
> + name[BOOKMARK_NAME_SIZE] = 0;
> UT_XML_strncpy(name, BOOKMARK_NAME_SIZE, (XML_Char*)szName);

Shouldn't the name[...] = 0 be done after the strncpy?

-- 
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
                                                 -- Benjamin Franklin



This archive was generated by hypermail 2b25 : Sun Jan 27 2002 - 08:02:38 CST