make sure there is no mem problems, using %.ns instead of %s for luaV_error.

This commit is contained in:
Roberto Ierusalimschy
1997-11-19 16:16:33 -02:00
parent 2e7595522d
commit 6153200bc2
4 changed files with 8 additions and 8 deletions

View File

@@ -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 */
}
}