Avoid using 'strtok()'. This function directly modifies the first argument buffer, permanently erasing the delimiter character. Use 'strtok_r()' instead.
uint64_t uid = strtoul(strtok(NULL, " "), NULL, 10);