Wednesday, 18 April 2012

strncpy - Re: r13881 chris_y - in /trunk/netsurf/amiga: gui.c misc.c

On Wed, 18 Apr 2012 18:54:15 -0000, I wibbled on for an age:

> Replace strncpy with strlcpy, as strncpy is not guaranteed to be
> NULL-terminated. (thx Colin Wenzel)

Not sure if this is relevant elsewhere in NetSurf and libraries. I
can see a lot of files in utils using strncpy.

It was flagged up to me so I'm just passing it on. :)

Chris

No comments:

Post a Comment