summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/strings.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/strings.c b/src/util/strings.c
index 981718e4c..ac9805cdd 100644
--- a/src/util/strings.c
+++ b/src/util/strings.c
@@ -266,11 +266,14 @@ convert_with_table (const char *input,
const char *tok;
unsigned long long last;
unsigned int i;
+ char *sptr;
ret = 0;
last = 0;
in = GNUNET_strdup (input);
- for (tok = strtok (in, " "); tok != NULL; tok = strtok (NULL, " "))
+ for (tok = strtok_r (in, " ", &sptr);
+ tok != NULL;
+ tok = strtok_r (NULL, " ", &sptr))
{
do
{