aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lauxlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lauxlib.c b/lauxlib.c
index a13b75c3..9391ae28 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lauxlib.c,v 1.223 2010/10/25 20:31:11 roberto Exp roberto $ 2** $Id: lauxlib.c,v 1.224 2010/10/29 12:52:21 roberto Exp roberto $
3** Auxiliary functions for building Lua libraries 3** Auxiliary functions for building Lua libraries
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -377,7 +377,7 @@ LUALIB_API char *luaL_prepbuffsize (luaL_Buffer *B, size_t sz) {
377 if (newsize - B->n < sz) /* not bit enough? */ 377 if (newsize - B->n < sz) /* not bit enough? */
378 newsize = B->n + sz; 378 newsize = B->n + sz;
379 if (newsize < B->n || newsize - B->n < sz) 379 if (newsize < B->n || newsize - B->n < sz)
380 luaL_error(L, "string too large"); 380 luaL_error(L, "buffer too large");
381 newbuff = (char *)lua_newuserdata(L, newsize); /* create larger buffer */ 381 newbuff = (char *)lua_newuserdata(L, newsize); /* create larger buffer */
382 memcpy(newbuff, B->b, B->n); /* move content to new buffer */ 382 memcpy(newbuff, B->b, B->n); /* move content to new buffer */
383 if (buffonstack(B)) 383 if (buffonstack(B))