mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-22 05:13:32 +02:00
Fix strange sizeof()
This commit is contained in:
parent
6e2cf70587
commit
244a47efb8
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ START_TEST(test_build_hostname)
|
|||
buflen = sizeof(buf);
|
||||
|
||||
for (i = 1; i < sizeof(data); i++) {
|
||||
int len = build_hostname(buf, buflen, data, i, topdomain, get_base32_encoder(), sizeof(buflen));
|
||||
int len = build_hostname(buf, buflen, data, i, topdomain, get_base32_encoder(), sizeof(buf));
|
||||
|
||||
fail_if(len > i);
|
||||
fail_if(strstr(buf, ".."), "Found double dots when encoding data len %d! buf: %s", i, buf);
|
||||
|
|
Loading…
Reference in a new issue