aboutsummaryrefslogtreecommitdiff
path: root/tests/survey.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/survey.c')
-rw-r--r--tests/survey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/survey.c b/tests/survey.c
index 6f85850f..2a757a98 100644
--- a/tests/survey.c
+++ b/tests/survey.c
@@ -123,7 +123,7 @@ Main({
msg = NULL;
So(nng_recvmsg(resp, &msg, 0) == 0);
CHECKSTR(msg, "abc");
- nng_msg_trunc(msg, 3);
+ nng_msg_chop(msg, 3);
APPENDSTR(msg, "def");
So(nng_sendmsg(resp, msg, 0) == 0);
msg = NULL;