Messages in this thread | | | Date | Thu, 06 Mar 2008 13:44:59 -0800 | From | "H. Peter Anvin" <> | Subject | Re: [PATCH] locomo.c: convert strncpy(x, y, sizeof(x)) to strlcpy |
| |
Roel Kluin wrote: > This patch was not yet tested. Please confirm it's right. > --- > strncpy does not append '\0' if the length of the source string equals > the size parameter, strlcpy does. >
Are you sure it's safe to not zero out the contents of the buffer (no information leak)?
-hpa
| |