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. --- lmathlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lmathlib.c') diff --git a/lmathlib.c b/lmathlib.c index 18967220..1a96df20 100644 --- a/lmathlib.c +++ b/lmathlib.c @@ -1,5 +1,5 @@ /* -** $Id: lmathlib.c,v 1.3 1997/11/03 21:11:44 roberto Exp roberto $ +** $Id: lmathlib.c,v 1.4 1997/11/04 15:27:53 roberto Exp roberto $ ** Lua standard mathematical library ** See Copyright Notice in lua.h */ @@ -30,7 +30,7 @@ static double torad (void) case 'r' : return 1.0; case 'g' : return PI/50.0; default: - luaL_verror("invalid _TRIGMODE (`%s')", s); + luaL_verror("invalid _TRIGMODE (`%.50s')", s); return 0; /* to avoid warnings */ } } -- cgit v1.2.3-55-g6feb