X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmemcpy.c;h=437f622b29b5f8d6cbbee36a607798ef820e56bc;hb=7b7f6d343eb133e6fb670a982ef4b6b3e13256cb;hp=aec71e36bee903617e042fe077e999efb60356b6;hpb=18d51bdeb5da7a87ec8ade4aa8d97528cce57db9;p=gnulib.git diff --git a/lib/memcpy.c b/lib/memcpy.c index aec71e36b..437f622b2 100644 --- a/lib/memcpy.c +++ b/lib/memcpy.c @@ -2,13 +2,8 @@ if the source overlaps with the destination. Return DESTADDR. */ -#include - -/* FIXME: uncomment the following for releases. */ -#define NDEBUG 1 - -#ifndef ABS -# define ABS(x) ((x) < 0 ? (-(x)) : (x)) +#ifdef HAVE_CONFIG_H +# include #endif char * @@ -19,10 +14,6 @@ memcpy (destaddr, srcaddr, len) { char *dest = destaddr; - assert (len >= 0); - /* Make sure they don't overlap. */ - assert (ABS (destaddr - srcaddr) >= len); - while (len-- > 0) *destaddr++ = *srcaddr++; return dest;