mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-22 08:09:19 +02:00
Check that the buffer is intact
This commit is contained in:
parent
22c66af914
commit
0aa665c0e3
|
@ -146,6 +146,7 @@ START_TEST(test_read_name)
|
||||||
rv = readname(jumper, sizeof(badjump), &data, buf, 256);
|
rv = readname(jumper, sizeof(badjump), &data, buf, 256);
|
||||||
|
|
||||||
fail_unless(rv == 0, NULL);
|
fail_unless(rv == 0, NULL);
|
||||||
|
fail_unless(buf[0] == 0, NULL);
|
||||||
}
|
}
|
||||||
free(jumper);
|
free(jumper);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue