From dc4d20ca52ea07c90779a9170d4edab612e17a40 Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Sun, 25 Apr 2021 00:48:01 +0200 Subject: [PATCH] Fixed get_githash (#5892) Fixes #5878 Thanks to @mazvi --- src/map/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/script.cpp b/src/map/script.cpp index 70c6a7879c..234427b7c5 100644 --- a/src/map/script.cpp +++ b/src/map/script.cpp @@ -21625,7 +21625,7 @@ BUILDIN_FUNC(get_githash) { safestrncpy(buf,git,strlen(git)+1); if ( git[0] != UNKNOWN_VERSION ) - script_pushstr(st,buf); + script_pushstrcopy(st,buf); else script_pushconststr(st,"Unknown"); //unknown return SCRIPT_CMD_SUCCESS;