diff options
Diffstat (limited to 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -476,7 +476,7 @@ static void *resizebox (lua_State *L, int idx, size_t newsize) { | |||
476 | UBox *box = (UBox *)lua_touserdata(L, idx); | 476 | UBox *box = (UBox *)lua_touserdata(L, idx); |
477 | void *temp = allocf(ud, box->box, box->bsize, newsize); | 477 | void *temp = allocf(ud, box->box, box->bsize, newsize); |
478 | if (temp == NULL && newsize > 0) /* allocation error? */ | 478 | if (temp == NULL && newsize > 0) /* allocation error? */ |
479 | luaL_error(L, "not enough memory for buffer allocation"); | 479 | luaL_error(L, "not enough memory"); |
480 | box->box = temp; | 480 | box->box = temp; |
481 | box->bsize = newsize; | 481 | box->bsize = newsize; |
482 | return temp; | 482 | return temp; |