aboutsummaryrefslogtreecommitdiff
path: root/civy.c
diff options
context:
space:
mode:
authorgautier.hattenberger2015-01-07 14:36:00 +0000
committergautier.hattenberger2015-01-07 14:36:00 +0000
commit63edf4eeb3b8063bf9541dbc611dde73abf4ca56 (patch)
treef7dcea082b0ca673dab3caafa09f67334f3ff1b7 /civy.c
parent5d51a16a065caa3cd74d7be4bc9a525d205d8746 (diff)
downloadivy-ocaml-63edf4eeb3b8063bf9541dbc611dde73abf4ca56.zip
ivy-ocaml-63edf4eeb3b8063bf9541dbc611dde73abf4ca56.tar.gz
ivy-ocaml-63edf4eeb3b8063bf9541dbc611dde73abf4ca56.tar.bz2
ivy-ocaml-63edf4eeb3b8063bf9541dbc611dde73abf4ca56.tar.xz
fix ctkivy and add tk part to makefile again
Diffstat (limited to 'civy.c')
-rw-r--r--civy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/civy.c b/civy.c
index 563f7ec..8ca8ef9 100644
--- a/civy.c
+++ b/civy.c
@@ -13,7 +13,7 @@
value ivy_sendMsg(value msg)
{
- IvySendMsg(String_val(msg));
+ IvySendMsg("%s", String_val(msg));
return Val_unit;
}
@@ -60,7 +60,7 @@ void ClosureCallback(IvyClientPtr app, void *closure, int argc, char **argv)
value ivy_bindMsg(value cb_name, value regexp)
{
value * closure = caml_named_value(String_val(cb_name));
- MsgRcvPtr id = IvyBindMsg(ClosureCallback, (void*)closure, String_val(regexp));
+ MsgRcvPtr id = IvyBindMsg(ClosureCallback, (void*)closure, "%s", String_val(regexp));
return Val_long(id);
}