summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-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 2ffcad83c..2647997c6 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -12971,7 +12971,7 @@ BUILDIN_FUNC(sprintf)
// Need not be parsed, just solve stuff like %%.
if(argc==0){
- sprintf(buf, format);
+ memcpy(buf,format,len+1);
script_pushstrcopy(st, buf);
aFree(buf);
return 0;