mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-19 08:46:44 +01:00
Problem: inadequate recv variant used which assumes 0-terminated string
Solution: use array recv variant instead
This commit is contained in:
parent
a5ee4fb001
commit
d328f90bb7
@ -138,8 +138,8 @@ int test_blocking (int send_hwm_, int msg_cnt_, const char *endpoint)
|
||||
|
||||
// Wait before starting TX operations till 1 subscriber has subscribed
|
||||
// (in this test there's 1 subscriber only)
|
||||
const char subscription_to_all_topics[] = {1, 0};
|
||||
recv_string_expect_success (pub_socket, subscription_to_all_topics, 0);
|
||||
const uint8_t subscription_to_all_topics[] = {1};
|
||||
recv_array_expect_success (pub_socket, subscription_to_all_topics, 0);
|
||||
|
||||
// Send until we block
|
||||
int send_count = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user