net/af_packet: prefer snprintf against strncpy