From 6153200bc25bd99f9d3d25d7caa486b03b6535d5 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 19 Nov 1997 16:16:33 -0200 Subject: make sure there is no mem problems, using %.ns instead of %s for luaV_error. --- liolib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'liolib.c') diff --git a/liolib.c b/liolib.c index ffa5b16c..7da2c8df 100644 --- a/liolib.c +++ b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 1.4 1997/11/04 15:27:53 roberto Exp roberto $ +** $Id: liolib.c,v 1.5 1997/11/19 17:29:23 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -83,7 +83,7 @@ static FILE *getfile (char *name) { lua_Object f = lua_getglobal(name); if (!ishandler(f)) - luaL_verror("global variable %s is not a file handle", name); + luaL_verror("global variable %.50s is not a file handle", name); return lua_getuserdata(f); } -- cgit v1.2.3-55-g6feb