Skip to content

Commit affbaf7

Browse files
author
Jérôme Lebel
committed
should use the right buffer size
1 parent 2ca3976 commit affbaf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongoc/mongoc-client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ mongoc_client_connect_tcp (const mongoc_uri_t *uri,
143143
(socklen_t)rp->ai_addrlen,
144144
expire_at)) {
145145
char *errmsg;
146-
char errmsg_buf[32];
146+
char errmsg_buf[BSON_ERROR_BUFFER_SIZE];
147147
char ip[255];
148148

149149
mongoc_socket_inet_ntop (rp, ip, sizeof ip);

0 commit comments

Comments
 (0)