replace remaining strncat calls with memcpy calls