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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user