aboutsummaryrefslogtreecommitdiff
path: root/libio/putchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/putchar.c')
-rw-r--r--libio/putchar.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libio/putchar.c b/libio/putchar.c
index 1e1dd13762..143796d20c 100644
--- a/libio/putchar.c
+++ b/libio/putchar.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -30,6 +30,7 @@ putchar (c)
_IO_stdout);
_IO_flockfile (_IO_stdout);
result = _IO_putc_unlocked (c, _IO_stdout);
- _IO_cleanup_region_end (1);
+ _IO_funlockfile (_IO_stdout);
+ _IO_cleanup_region_end (0);
return result;
}