aboutsummaryrefslogtreecommitdiff
path: root/io/getwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/getwd.c')
-rw-r--r--io/getwd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/io/getwd.c b/io/getwd.c
index 506aac8472..ae1724545e 100644
--- a/io/getwd.c
+++ b/io/getwd.c
@@ -1,5 +1,5 @@
/* Obsolete function to get current working directory.
- Copyright (C) 1991, 1992, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1991, 1992, 1996, 1997 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
@@ -49,9 +49,7 @@ getwd (buf)
/* This is completely unsafe. Nobody can say how big the user
provided buffer is. Perhaps the application and the libc
disagree about the value of PATH_MAX. */
- strcpy (buf, tmpbuf);
-
- return buf;
+ return strcpy (buf, tmpbuf);
}
link_warning (getwd,