2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00

Don't mutate input to SPLIT_BY_CHARACTERS.

[SVN r56204]
This commit is contained in:
Vladimir Prus
2009-09-15 06:03:23 +00:00
parent f27340a9ca
commit aa895640ed

View File

@@ -858,7 +858,7 @@ LIST * builtin_split_by_characters( PARSE * parse, FRAME * frame )
LIST * result = 0;
char* s = l1->string;
char* s = strdup (l1->string);
char* delimiters = l2->string;
char* t;
@@ -869,6 +869,8 @@ LIST * builtin_split_by_characters( PARSE * parse, FRAME * frame )
t = strtok (NULL, delimiters);
}
free (s);
return result;
}