fix: gettimeofday() expects two arguments
fix: strcpy() on overlapping memory regions is invalid