On 2011-02-10 13:27, Olaf van der Spek wrote: > On Thu, Feb 10, 2011 at 12:54 PM, Lars Wirzenius <liw@xxxxxx> wrote: >> snprintf is standard, and should be about as safe as it gets with the >> glibc functions. > > But snprintf is not like strlcpy. It is indeed uglier to write 'snprintf(dst, size, "%s", src)' instead of 'strlcpy(dst, src, size)', but both the effect and the return value should be identical. /Bellman -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
