summaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-11-19 16:16:33 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-11-19 16:16:33 -0200
commit6153200bc25bd99f9d3d25d7caa486b03b6535d5 (patch)
tree67de753105b00fb99bd561a9dde415257b2f7abe /liolib.c
parent2e7595522db676e77ee057f091dcc10a0f3d885f (diff)
downloadlua-6153200bc25bd99f9d3d25d7caa486b03b6535d5.tar.gz
lua-6153200bc25bd99f9d3d25d7caa486b03b6535d5.tar.bz2
lua-6153200bc25bd99f9d3d25d7caa486b03b6535d5.zip
make sure there is no mem problems, using %.ns instead of %s for luaV_error.
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liolib.c b/liolib.c
index ffa5b16c..7da2c8df 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 1.4 1997/11/04 15:27:53 roberto Exp roberto $ 2** $Id: liolib.c,v 1.5 1997/11/19 17:29:23 roberto Exp roberto $
3** Standard I/O (and system) library 3** Standard I/O (and system) library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -83,7 +83,7 @@ static FILE *getfile (char *name)
83{ 83{
84 lua_Object f = lua_getglobal(name); 84 lua_Object f = lua_getglobal(name);
85 if (!ishandler(f)) 85 if (!ishandler(f))
86 luaL_verror("global variable %s is not a file handle", name); 86 luaL_verror("global variable %.50s is not a file handle", name);
87 return lua_getuserdata(f); 87 return lua_getuserdata(f);
88} 88}
89 89