[BZ #924] cvs/fedora-glibc-20050503T0852
authorRoland McGrath <roland@gnu.org>
Mon, 2 May 2005 20:15:34 +0000 (20:15 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 2 May 2005 20:15:34 +0000 (20:15 +0000)
2005-05-02  Roland McGrath  <roland@redhat.com>
[BZ #924]
* crypt/md5.c [! HAVE_MEMCPY] (memcpy): Yield proper expression value.

ChangeLog
crypt/md5.c

index 980c5091b9be23d46433b078ce330d0131588755..b6ab53e31b6fe9a2e771d027c3fd28edee5ac7c1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-02  Roland McGrath  <roland@redhat.com>
+
+       [BZ #924]
+       * crypt/md5.c [! HAVE_MEMCPY] (memcpy): Yield proper expression value.
+
 2005-04-29  Roland McGrath  <roland@redhat.com>
 
        * timezone/africa: Update from tzdata2005i.
index 04bce5ab378539c033e1b3ee62ddbbfae33e0816..922e7cc7e97352f81fde0a076fdb11886bbec7ce 100644 (file)
@@ -1,6 +1,7 @@
 /* Functions to compute MD5 message digest of files or memory blocks.
    according to the definition of MD5 in RFC 1321 from April 1992.
-   Copyright (C) 1995,1996,1997,1999,2000,2001 Free Software Foundation, Inc.
+   Copyright (C) 1995,1996,1997,1999,2000,2001,2005
+       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
@@ -31,7 +32,7 @@
 # include <string.h>
 #else
 # ifndef HAVE_MEMCPY
-#  define memcpy(d, s, n) bcopy ((s), (d), (n))
+#  define memcpy(d, s, n) (bcopy ((s), (d), (n)), (d))
 # endif
 #endif