diff options
Diffstat (limited to 'code/test/server.c')
-rw-r--r-- | code/test/server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/code/test/server.c b/code/test/server.c index 6851cdf..471164e 100644 --- a/code/test/server.c +++ b/code/test/server.c @@ -17,8 +17,8 @@ ECPConnHandler handler_s; ssize_t handle_msg_s(ECPConnection *conn, ecp_seq_t sq, unsigned char t, unsigned char *p, ssize_t s) { printf("MSG S:%s size:%ld\n", p, s); - unsigned char payload[ECP_SIZE_PLD(1000)]; - unsigned char *buf = ecp_pld_get_buf(payload); + unsigned char payload[ECP_SIZE_PLD(1000, 0)]; + unsigned char *buf = ecp_pld_get_buf(payload, 0); char *msg = "VAISTINU JE CAR!"; ecp_pld_set_type(payload, MTYPE_MSG); |