Explorar el Código

Fixed get_githash (#5892)

Fixes #5878

Thanks to @mazvi
Lemongrass3110 hace 4 años
padre
commit
dc4d20ca52
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/map/script.cpp

+ 1 - 1
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;