diff options
Diffstat (limited to 'lstring.c')
-rw-r--r-- | lstring.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++; |