projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
str: Replace ss_alloc_substring() by ss_clone() and similarly with a pool.
[pspp]
/
src
/
language
/
lexer
/
macro.c
diff --git
a/src/language/lexer/macro.c
b/src/language/lexer/macro.c
index 8e599f4ddeaa4e449f67bc279bfd16ec51e45a8d..9536727a0f78d08b047feaeb1b639597462934cc 100644
(file)
--- a/
src/language/lexer/macro.c
+++ b/
src/language/lexer/macro.c
@@
-136,7
+136,7
@@
void
macro_token_copy (struct macro_token *dst, const struct macro_token *src)
{
token_copy (&dst->token, &src->token);
-
ss_alloc_substring (&dst->syntax,
src->syntax);
+
dst->syntax = ss_clone (
src->syntax);
}
void