On Monday 03 December 2012 13:42:23 Frank Meerkötter wrote: > Hi, > > i noticed that strncpy wasn't used correctly here. > Please review/apply. > > Patch follows: > > From the man page: > [...] > The strncpy() function is similar, except that at most n > bytes of src are copied. Warning: If there is no null byte > among the first n bytes of src, the string placed in dest > will not be null-terminated. > [...] > > Signed-off-by: Frank Meerkötter <[email protected]>
I would rather link with libbsd and use strlcpy(). Felix what do you think? -- Florian _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
