Invalid write of size 1
   at 0x........: strlcpy (vg_replace_strmem.c:...)
   ...
 Address 0x........ is 0 bytes after a block of size 10 alloc'd
   at 0x........: malloc (vg_replace_malloc.c:...)
   ...

Source and destination overlap in strlcpy(0x........, 0x........, 11)
   at 0x........: strlcpy (vg_replace_strmem.c:...)
   ...