summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-05 19:04:26 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-05 19:04:26 +0300
commit886f9947336a61528060e9b26b3ac0a5824873fe (patch)
tree5f0df92d7b6b64e6900b8f1cc8d364d65c69f157
parent0c9b84e5be2f4ada74949f63feadea18d2c16678 (diff)
downloadevol-hercules-886f9947336a61528060e9b26b3ac0a5824873fe.tar.gz
evol-hercules-886f9947336a61528060e9b26b3ac0a5824873fe.tar.bz2
evol-hercules-886f9947336a61528060e9b26b3ac0a5824873fe.tar.xz
evol-hercules-886f9947336a61528060e9b26b3ac0a5824873fe.zip
fix memory usage in l function.
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 0ad7d48..9e72453 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -17,6 +17,6 @@
BUILDIN(l)
{
// for now not translate and not use format parameters
- script_pushstr(st, strdup(script_getstr(st, 2)));
+ script_pushstr(st, aStrdup(script_getstr(st, 2)));
return true;
}