diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-06-16 11:30:58 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-06-16 11:30:58 -0300 |
commit | beab626061a29bd957ae297bd5993cb5b4e15f22 (patch) | |
tree | c717991b31fbdceea41256277b996d6b0e42f0eb | |
parent | 817f8674af64a82c6f9c8b855446800a5642764e (diff) | |
download | lua-beab626061a29bd957ae297bd5993cb5b4e15f22.tar.gz lua-beab626061a29bd957ae297bd5993cb5b4e15f22.tar.bz2 lua-beab626061a29bd957ae297bd5993cb5b4e15f22.zip |
correct length for LUA_COPYRIGHT (without trailing '\0')
-rw-r--r-- | lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.198 2011/05/03 16:01:57 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.199 2011/05/26 16:09:40 roberto Exp roberto $ |
3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -183,7 +183,7 @@ static int docall (lua_State *L, int narg, int nres) { | |||
183 | 183 | ||
184 | 184 | ||
185 | static void print_version (void) { | 185 | static void print_version (void) { |
186 | luai_writestring(LUA_COPYRIGHT, sizeof(LUA_COPYRIGHT)); | 186 | luai_writestring(LUA_COPYRIGHT, strlen(LUA_COPYRIGHT)); |
187 | luai_writeline(); | 187 | luai_writeline(); |
188 | } | 188 | } |
189 | 189 | ||