diff options
-rw-r--r-- | src/textadept.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textadept.c b/src/textadept.c index 9be6c5e1..fa222392 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -1434,7 +1434,7 @@ static int lstring_iconv(lua_State *L) { if (errno == E2BIG) { // Buffer was too small to store converted string. Push the partially // converted string for later concatenation. - lua_pushlstring(L, outbuf, outbufp - outbuf), n++; + lua_checkstack(L, 2), lua_pushlstring(L, outbuf, outbufp - outbuf), n++; outbufp = outbuf, outbytesleft = bufsize; } else { free(outbuf), iconv_close(cd); |