From 0aa665c0e3d8b1b6da87097bf74c5a8c66439b6d Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Sun, 28 Jan 2007 03:35:24 +0000 Subject: [PATCH] Check that the buffer is intact --- tests/read.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/read.c b/tests/read.c index 0458139..7db3f7f 100644 --- a/tests/read.c +++ b/tests/read.c @@ -146,6 +146,7 @@ START_TEST(test_read_name) rv = readname(jumper, sizeof(badjump), &data, buf, 256); fail_unless(rv == 0, NULL); + fail_unless(buf[0] == 0, NULL); } free(jumper);