summaryrefslogtreecommitdiff
path: root/libio/bug-ungetc4.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-12-14 11:22:58 +0000
committerJakub Jelinek <jakub@redhat.com>2004-12-14 11:22:58 +0000
commit1b88b322d45419e79aff6b3b1fc2e59b78d6818d (patch)
treeaedf66c8a82c1f148803efdf2033e91e7a220d49 /libio/bug-ungetc4.c
parentd3cfe8dd4e2909ac75a78014e4f26385330b6fa2 (diff)
Updated to fedora-glibc-20041214T1058cvs/fedora-glibc-2_3_3-92
Diffstat (limited to 'libio/bug-ungetc4.c')
-rw-r--r--libio/bug-ungetc4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/bug-ungetc4.c b/libio/bug-ungetc4.c
index 82019b6d8e..0f530efecf 100644
--- a/libio/bug-ungetc4.c
+++ b/libio/bug-ungetc4.c
@@ -38,7 +38,7 @@ do_prepare (void)
printf ("cannot create temporary file: %m\n");
exit (1);
}
- write (fd, pattern, sizeof (pattern));
+ write (fd, pattern, sizeof (pattern) - 1);
close (fd);
}