mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03:00
correct length for LUA_COPYRIGHT (without trailing '\0')
This commit is contained in:
parent
817f8674af
commit
beab626061
1 changed files with 2 additions and 2 deletions
4
lua.c
4
lua.c
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lua.c,v 1.198 2011/05/03 16:01:57 roberto Exp roberto $
|
||||
** $Id: lua.c,v 1.199 2011/05/26 16:09:40 roberto Exp roberto $
|
||||
** Lua stand-alone interpreter
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -183,7 +183,7 @@ static int docall (lua_State *L, int narg, int nres) {
|
|||
|
||||
|
||||
static void print_version (void) {
|
||||
luai_writestring(LUA_COPYRIGHT, sizeof(LUA_COPYRIGHT));
|
||||
luai_writestring(LUA_COPYRIGHT, strlen(LUA_COPYRIGHT));
|
||||
luai_writeline();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue