From 9a43342d21db28b5521503a03b0c4cb159cc2136 Mon Sep 17 00:00:00 2001
From: Peter Melnichenko <mpeterval@gmail.com>
Date: Tue, 5 Jul 2016 16:20:59 +0300
Subject: Fix an implicit number-to-string conversion in keeper.c

---
 src/keeper.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'src/keeper.c')

diff --git a/src/keeper.c b/src/keeper.c
index ea061ce..dcb3708 100644
--- a/src/keeper.c
+++ b/src/keeper.c
@@ -702,9 +702,7 @@ void init_keepers( struct s_Universe* U, lua_State* L)
 		call_on_state_create( U, K, L, eLM_ToKeeper);
 
 		// to see VM name in Decoda debugger
-		lua_pushliteral( K, "Keeper #");                                                  // "Keeper #"
-		lua_pushinteger( K, i + 1);                                                       // "Keeper #" n
-		lua_concat( K, 2);                                                                // "Keeper #n"
+		lua_pushfstring( K, "Keeper #%d", i + 1);                                         // "Keeper #n"
 		lua_setglobal( K, "decoda_name");                                                 //
 
 		// create the fifos table in the keeper state
-- 
cgit v1.2.3-55-g6feb