[TextEditor_mcc] Re: latest "improvements"

  • From: Ilkka Lehtoranta <ilkleht@xxxxxxxxxxx>
  • To: texteditor_mcc@xxxxxxxxxxxxx
  • Date: Fri, 21 Apr 2006 22:32:57 +0300 (EEST)

On Tue, 18 Apr 2006, Jens Langner wrote:

> I have already planned to replace all non-bufferoverflow safe functions like
> strncpy, strncat, sprintf with buffer overflow safe variants. However, I
> haven't done yet as it doesn't seem to be a big issue for texteditor.mcc. In

Yeah. I searched through sources I had and there were only very few 
strncpy() calls in the texteditor (and not many on other projects either).

I just dont like slowness of strncpy() (copies NULL character up to n 

> fact I can only spot about 7 references to strncpy() for exmaple which we
> would have to replace by strlcpy() (not stccpy!!)

I cant find strlcpy() from libc docs :P


TextEditor ML   - http://www.freelists.org/list/texteditor_mcc
Listserver help - mailto:texteditor_mcc-request@xxxxxxxxxxxxx?Subject=HELP
Bugtracker......: http://sourceforge.net/tracker/?atid=731469&group_id=135025

Other related posts: