summaryrefslogtreecommitdiff
path: root/code/test/vc_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/test/vc_server.c')
-rw-r--r--code/test/vc_server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/test/vc_server.c b/code/test/vc_server.c
index 04b8104..55f15d1 100644
--- a/code/test/vc_server.c
+++ b/code/test/vc_server.c
@@ -24,13 +24,13 @@ ssize_t handle_open(ECPConnection *conn, ecp_seq_t sq, unsigned char t, unsigned
}
ssize_t handle_msg(ECPConnection *conn, ecp_seq_t sq, unsigned char t, unsigned char *p, ssize_t s, ECP2Buffer *b) {
- printf("MSG S:%s size:%ld\n", p, s);
+ // printf("MSG S:%s size:%ld\n", p, s);
char *msg = "VAISTINU JE CAR!";
unsigned char buf[1000];
strcpy((char *)buf, msg);
- ssize_t _rv = ecp_send(conn, MTYPE_MSG, buf, 1000);
+ ssize_t _rv = ecp_send(conn, MTYPE_MSG, buf, strlen(msg)+1);
return s;
}