about summary refs log tree commit diff
path: root/sysdeps/generic/stpncpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/stpncpy.c')
-rw-r--r--sysdeps/generic/stpncpy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/stpncpy.c b/sysdeps/generic/stpncpy.c
index d4a524086c..5cdd93d19e 100644
--- a/sysdeps/generic/stpncpy.c
+++ b/sysdeps/generic/stpncpy.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1995 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1995, 1996 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
@@ -67,7 +67,7 @@ DEFUN(__stpncpy, (dest, src, n), char *dest AND CONST char *src AND size_t n)
  last_chars:
   n &= 3;
   if (n == 0)
-    return s;
+    return dest;
 
   do
     {