From 2a966116b1fe33e1ff18ec408b77311599633b52 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 9 Nov 2010 09:04:15 -0200 Subject: detail (message) --- lauxlib.c | 4 ++-- 1 file 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 @@ /* -** $Id: lauxlib.c,v 1.223 2010/10/25 20:31:11 roberto Exp roberto $ +** $Id: lauxlib.c,v 1.224 2010/10/29 12:52:21 roberto Exp roberto $ ** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ @@ -377,7 +377,7 @@ LUALIB_API char *luaL_prepbuffsize (luaL_Buffer *B, size_t sz) { if (newsize - B->n < sz) /* not bit enough? */ newsize = B->n + sz; if (newsize < B->n || newsize - B->n < sz) - luaL_error(L, "string too large"); + luaL_error(L, "buffer too large"); newbuff = (char *)lua_newuserdata(L, newsize); /* create larger buffer */ memcpy(newbuff, B->b, B->n); /* move content to new buffer */ if (buffonstack(B)) -- cgit v1.2.3-55-g6feb