style: args strtok_r

This commit is contained in:
2025-11-10 15:47:17 +01:00
parent a8af10c1c5
commit 54224779b6
+5 -2
View File
@@ -86,8 +86,11 @@ static bool is_arg(char *arg, const char *ref) {
}
static char *split_arg_value(char *arg) {
strtok(arg, "=");
return strtok(NULL, "=");
char *rest;
strtok_r(arg, "=", &rest);
return rest;
}
static unsigned int parse_uint(char *arg, char *value) {