fix tests after patch in #88

This commit is contained in:
Erik Ekman 2009-12-29 20:08:01 +00:00 committed by Erik Ekman
parent b177901d38
commit aa818c58bb
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ START_TEST(test_build_hostname)
buflen = sizeof(buf); buflen = sizeof(buf);
for (i = 1; i < sizeof(data); i++) { for (i = 1; i < sizeof(data); i++) {
int len = build_hostname(buf, buflen, data, i, topdomain, get_base32_encoder()); int len = build_hostname(buf, buflen, data, i, topdomain, get_base32_encoder(), sizeof(buflen));
fail_if(len > i); fail_if(len > i);
fail_if(strstr(buf, ".."), "Found double dots when encoding data len %d! buf: %s", i, buf); fail_if(strstr(buf, ".."), "Found double dots when encoding data len %d! buf: %s", i, buf);