Hi, This patch improves strncpy performance by using memset to clear memory after the string when the buffer is much larger than the copied string. This is better as memset is significantly faster than a simple byte-loop. On bench-strncpy it is ~25% faster. ChangeLog: 2014-08-20 Wilco Dijkstra * string/strncpy.c (strncpy): Improve performance by using memset.