net/tap: fix memcpy with incorrect size