diff options
Diffstat (limited to '')
| -rw-r--r-- | src/3rdParty/lua/lstring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdParty/lua/lstring.c b/src/3rdParty/lua/lstring.c index 1032ad8..e921dd0 100644 --- a/src/3rdParty/lua/lstring.c +++ b/src/3rdParty/lua/lstring.c | |||
| @@ -207,8 +207,8 @@ static TString *internshrstr (lua_State *L, const char *str, size_t l) { | |||
| 207 | list = &tb->hash[lmod(h, tb->size)]; /* rehash with new size */ | 207 | list = &tb->hash[lmod(h, tb->size)]; /* rehash with new size */ |
| 208 | } | 208 | } |
| 209 | ts = createstrobj(L, l, LUA_VSHRSTR, h); | 209 | ts = createstrobj(L, l, LUA_VSHRSTR, h); |
| 210 | memcpy(getshrstr(ts), str, l * sizeof(char)); | ||
| 211 | ts->shrlen = cast_byte(l); | 210 | ts->shrlen = cast_byte(l); |
| 211 | memcpy(getshrstr(ts), str, l * sizeof(char)); | ||
| 212 | ts->u.hnext = *list; | 212 | ts->u.hnext = *list; |
| 213 | *list = ts; | 213 | *list = ts; |
| 214 | tb->nuse++; | 214 | tb->nuse++; |
