1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00

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.
This commit is contained in:
Siddhesh Poyarekar
2013-04-15 11:35:43 +05:30
parent acb4325fc7
commit 5cb26d0aed
2 changed files with 3 additions and 1 deletions

View File

@@ -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);