change to pushliteral in ime_get_version.
authorPeng Wu <epico@dhcp-65-116.nay.redhat.com>
Mon, 15 Mar 2010 09:03:13 +0000 (17:03 +0800)
committerPeng Wu <alexepico@gmail.com>
Wed, 19 May 2010 02:09:31 +0000 (10:09 +0800)
lua/lua-plugin-init.c

index ca4fb7e..bde0416 100644 (file)
@@ -50,7 +50,7 @@ static int ime_get_last_commit(lua_State* L){
 
 static int ime_get_version(lua_State* L){
   /* TODO: replace this with C macros. */
-  lua_pushstring(L, "ibus-pinyin 1.2.99");
+  lua_pushliteral(L, "ibus-pinyin 1.2.99");
   return 1;
 }