Merge pull request #2960 from Romain-Geissler-1A/fix-gcc-8-build

Fix gcc 8 build warning/error with -O3.
This commit is contained in:
Luca Boccassi 2018-02-27 11:00:49 +00:00 committed by GitHub
commit 31387f84e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -536,7 +536,7 @@ const char *zmq::msg_t::group ()
int zmq::msg_t::set_group (const char *group_)
{
return set_group (group_, strlen (group_));
return set_group (group_, ZMQ_GROUP_MAX_LENGTH);
}
int zmq::msg_t::set_group (const char *group_, size_t length_)