Skip to content

Commit

Permalink
chore: resolve mingw build failed
Browse files Browse the repository at this point in the history
  • Loading branch information
septs committed May 3, 2024
1 parent 42a0daf commit cb9958a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/applet/profile/download.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ static int applet_main(int argc, char **argv)
// Section: 4.1 (Activation Code)

char *activation = argv[1] + 4;
char *token = strsep(&activation, "$");
char *offset = NULL;
char *token = NULL;
int index = 0;

while (token != NULL)
while ((token = strtok_r(activation, "$", &offset)) != NULL)
{
switch (index)
{
Expand Down Expand Up @@ -99,7 +100,6 @@ static int applet_main(int argc, char **argv)
break;
}
index++;
token = strsep(&activation, "$");
}
}

Expand Down

0 comments on commit cb9958a

Please sign in to comment.