Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mit/lua/dist/src fix macro usage



details:   https://anonhg.NetBSD.org/src/rev/d79cb65adaa2
branches:  trunk
changeset: 811075:d79cb65adaa2
user:      mbalmer <mbalmer%NetBSD.org@localhost>
date:      Sun Oct 11 09:06:21 2015 +0000

description:
fix macro usage

diffstat:

 external/mit/lua/dist/src/lobject.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 0bd9c84003df -r d79cb65adaa2 external/mit/lua/dist/src/lobject.c
--- a/external/mit/lua/dist/src/lobject.c       Sun Oct 11 08:46:43 2015 +0000
+++ b/external/mit/lua/dist/src/lobject.c       Sun Oct 11 09:06:21 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lobject.c,v 1.6 2015/10/11 01:01:45 christos Exp $     */
+/*     $NetBSD: lobject.c,v 1.7 2015/10/11 09:06:21 mbalmer Exp $      */
 
 /*
 ** Id: lobject.c,v 2.104 2015/04/11 18:30:08 roberto Exp 
@@ -370,7 +370,7 @@
   }
 #else /* _KERNEL */
   lua_assert(ttisinteger(obj));
-  len = lua_integer2str(buff, ivalue(obj));
+  len = lua_integer2str(buff, sizeof(buff), ivalue(obj));
 #endif
   setsvalue2s(L, obj, luaS_newlstr(L, buff, len));
 }



Home | Main Index | Thread Index | Old Index