maint: tac: use memcpy, not strcpy

* src/tac.c (main): Use memcpy, not strcpy, since we know the length.
This commit is contained in:
Jim Meyering committed 2012-04-19 13:10:36 +02:00
1 parent bcb9078e38
commit 219b894de4
1 file changed
+1 -1
+1 -1
View File
@@ -664,7 +664,7 @@ main (int argc, char **argv)
G_buffer = xmalloc (G_buffer_size);
if (sentinel_length)
{
strcpy (G_buffer, separator);
memcpy (G_buffer, separator, sentinel_length + 1);
G_buffer += sentinel_length;
}
else