summary refs log tree commit diff
path: root/io
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-31 07:34:24 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-31 07:34:24 +0000
commitfbcc0996a825f961bf7669fa54b58027b0e663ec (patch)
tree75de2568086dce82039eaef60af17e19a00d4ef0 /io
parentb2fe29ddb550a0f8c6d92b6d4467dd8f0bc1f1c8 (diff)
downloadglibc-fbcc0996a825f961bf7669fa54b58027b0e663ec.tar.gz
glibc-fbcc0996a825f961bf7669fa54b58027b0e663ec.tar.xz
glibc-fbcc0996a825f961bf7669fa54b58027b0e663ec.zip
Update.
2000-08-31  Ulrich Drepper  <drepper@redhat.com>

	* malloc/malloc.c (ptmalloc_init): Optimize a bit by not calling
	__secure_getenv.  Instead test __libc_enable_secure once.

	* io/pwd.c (main): Provide a good example, use *_unlocked function.
Diffstat (limited to 'io')
-rw-r--r--io/pwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io/pwd.c b/io/pwd.c
index c4d3a5f62c..006f1d306f 100644
--- a/io/pwd.c
+++ b/io/pwd.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1997, 1998, 2000 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
@@ -35,7 +35,7 @@ main (void)
     perror ("getcwd");
   else
     {
-      puts (dir);
+      fputs_unlocked (dir, stdout);
       free (dir);
     }