From 5cb26d0aed9c7414f0d391a0ca766786625de8b5 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Mon, 15 Apr 2013 11:35:43 +0530 Subject: Fix off-by-one bug in tst-fwrite-error tst-fwrite-error did not allocate enough space for the string 'world' and its NULL terminator. Fixed. --- libio/tst-fwrite-error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libio') diff --git a/libio/tst-fwrite-error.c b/libio/tst-fwrite-error.c index e2507effe7..87c876627e 100644 --- a/libio/tst-fwrite-error.c +++ b/libio/tst-fwrite-error.c @@ -36,7 +36,7 @@ do_test (void) return 1; } - char buf[5] = "world"; + char buf[] = "world"; setvbuf (fp, NULL, _IONBF, 0); close (fd); unlink (tmpl); -- cgit v1.2.1