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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user