Source-Changes-HG archive

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

[src/trunk]: src/sys/modules/luacore Use "%s" to panic.



details:   https://anonhg.NetBSD.org/src/rev/8a5b11c5fe4a
branches:  trunk
changeset: 790541:8a5b11c5fe4a
user:      alnsn <alnsn%NetBSD.org@localhost>
date:      Wed Oct 16 21:55:56 2013 +0000

description:
Use "%s" to panic.

diffstat:

 sys/modules/luacore/luacore.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r e4b131adfbd4 -r 8a5b11c5fe4a sys/modules/luacore/luacore.c
--- a/sys/modules/luacore/luacore.c     Wed Oct 16 19:59:29 2013 +0000
+++ b/sys/modules/luacore/luacore.c     Wed Oct 16 21:55:56 2013 +0000
@@ -112,7 +112,7 @@
 static int
 core_panic(lua_State *L)
 {
-       panic(lua_tostring(L, -1));
+       panic("%s", lua_tostring(L, -1));
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index