diff options
author | Haru <haru@dotalux.com> | 2020-04-05 20:42:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-05 20:42:48 +0200 |
commit | 08691e5027cfa602578fc5f4d064900881be5108 (patch) | |
tree | 2fcc2cab0041f43bd965018d32163508bdbcb8e8 /src/map/script.c | |
parent | a761af9650e781a272fa3b22bc85eca3e141aed7 (diff) | |
parent | 3d7d740a22d2b52d708709ebdd47f7e05f527f5f (diff) | |
download | hercules-08691e5027cfa602578fc5f4d064900881be5108.tar.gz hercules-08691e5027cfa602578fc5f4d064900881be5108.tar.bz2 hercules-08691e5027cfa602578fc5f4d064900881be5108.tar.xz hercules-08691e5027cfa602578fc5f4d064900881be5108.zip |
Merge pull request #2656 from Kenpachi2k13/getiteminfo_fix
Fix overflowing pointer in getiteminfo() script command
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c index b8a7979a7..c644e9b75 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -14952,10 +14952,10 @@ static BUILDIN(getiteminfo) script_pushint(st, it->nameid); break; case ITEMINFO_AEGISNAME: - script_pushstr(st, it->name); + script_pushstrcopy(st, it->name); break; case ITEMINFO_NAME: - script_pushstr(st, it->jname); + script_pushstrcopy(st, it->jname); break; default: ShowError("buildin_getiteminfo: Invalid item info type %d.\n", type); |