aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lapi.c4
-rw-r--r--liolib.c4
-rw-r--r--lmathlib.c4
-rw-r--r--ltm.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/lapi.c b/lapi.c
index a65cc510..2914d989 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 1.4 1997/11/04 15:27:53 roberto Exp roberto $ 2** $Id: lapi.c,v 1.5 1997/11/19 17:29:23 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -389,7 +389,7 @@ void lua_settag (int tag)
389 (L->stack.top-1)->value.ts->u.d.tag = tag; 389 (L->stack.top-1)->value.ts->u.d.tag = tag;
390 break; 390 break;
391 default: 391 default:
392 luaL_verror("cannot change the tag of a %s", 392 luaL_verror("cannot change the tag of a %.20s",
393 luaO_typenames[-ttype((L->stack.top-1))]); 393 luaO_typenames[-ttype((L->stack.top-1))]);
394 } 394 }
395 L->stack.top--; 395 L->stack.top--;
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
diff --git a/lmathlib.c b/lmathlib.c
index 18967220..1a96df20 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmathlib.c,v 1.3 1997/11/03 21:11:44 roberto Exp roberto $ 2** $Id: lmathlib.c,v 1.4 1997/11/04 15:27:53 roberto Exp roberto $
3** Lua standard mathematical library 3** Lua standard mathematical library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -30,7 +30,7 @@ static double torad (void)
30 case 'r' : return 1.0; 30 case 'r' : return 1.0;
31 case 'g' : return PI/50.0; 31 case 'g' : return PI/50.0;
32 default: 32 default:
33 luaL_verror("invalid _TRIGMODE (`%s')", s); 33 luaL_verror("invalid _TRIGMODE (`%.50s')", s);
34 return 0; /* to avoid warnings */ 34 return 0; /* to avoid warnings */
35 } 35 }
36} 36}
diff --git a/ltm.c b/ltm.c
index e19aab54..49ecfc01 100644
--- a/ltm.c
+++ b/ltm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltm.c,v 1.7 1997/11/10 17:47:01 roberto Exp roberto $ 2** $Id: ltm.c,v 1.8 1997/11/19 17:29:23 roberto Exp roberto $
3** Tag methods 3** Tag methods
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -131,7 +131,7 @@ void luaT_settagmethod (int t, char *event, TObject *func)
131 int e = luaI_checkevent(event, luaT_eventname); 131 int e = luaI_checkevent(event, luaT_eventname);
132 checktag(t); 132 checktag(t);
133 if (!validevent(t, e)) 133 if (!validevent(t, e))
134 luaL_verror("settagmethod: cannot change internal method `%s' for tag %d", 134 luaL_verror("settagmethod: cannot change internal method `%.20s' for tag %d",
135 luaT_eventname[e], t); 135 luaT_eventname[e], t);
136 *func = *luaT_getim(t,e); 136 *func = *luaT_getim(t,e);
137 *luaT_getim(t, e) = temp; 137 *luaT_getim(t, e) = temp;