Skip to content

Commit 5288581

Browse files
committed
CDRIVER-2933 fix oid test - pt 2
1 parent 8d85686 commit 5288581

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libbson/tests/test-oid.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,8 @@ test_bson_hostnames (void)
549549
for (i = 0; i < HOST_NAME_MAX - 1; i++) {
550550
max_len_host[i] = 'a';
551551
}
552-
hostname_tests[sizeof(hostname_tests) - 1] = max_len_host;
552+
hostname_tests[(sizeof (hostname_tests) / sizeof (char *)) - 1] =
553+
max_len_host;
553554

554555
for (i = 0; i < sizeof (hostname_tests) / sizeof (char *); i++) {
555556
mock_hostname = hostname_tests[i];

0 commit comments

Comments
 (0)