tracing: Use strncpy instead of memcpy when copying comm in trace.c