summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--s_expression.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/s_expression.cpp b/s_expression.cpp
index 875d739d84..26be23ea8f 100644
--- a/s_expression.cpp
+++ b/s_expression.cpp
@@ -30,8 +30,8 @@
s_symbol::s_symbol(const char *tmp)
{
- this->str = new char [strlen(tmp) + 1];
- strcpy(this->str, tmp);
+ this->str = talloc_strdup (this, tmp);
+ assert(this->str != NULL);
}
s_list::s_list()