about summary refs log tree commit diff
path: root/libio/ioputs.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/ioputs.c')
-rw-r--r--libio/ioputs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libio/ioputs.c b/libio/ioputs.c
index ab5e6aaa4c..9ed8fe60a2 100644
--- a/libio/ioputs.c
+++ b/libio/ioputs.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1996, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU IO Library.
 
    This library is free software; you can redistribute it and/or
@@ -40,7 +40,8 @@ _IO_puts (str)
     result = len + 1;
   else
     result = EOF;
-  _IO_cleanup_region_end (1);
+  _IO_funlockfile (_IO_stdout);
+  _IO_cleanup_region_end (0);
   return result;
 }