Module Name: src Committed By: martin Date: Mon Feb 12 11:14:15 UTC 2018
Modified Files: src/common/lib/libc/string: bcopy.c Log Message: Complete previous by complteley removing the _DIAGASSERT from memmove - the accidental left over from previous fired on all legitimate calls and caused PR bin/52986 and PR lib/52987. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/common/lib/libc/string/bcopy.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/common/lib/libc/string/bcopy.c diff -u src/common/lib/libc/string/bcopy.c:1.12 src/common/lib/libc/string/bcopy.c:1.13 --- src/common/lib/libc/string/bcopy.c:1.12 Sun Feb 4 20:22:17 2018 +++ src/common/lib/libc/string/bcopy.c Mon Feb 12 11:14:15 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: bcopy.c,v 1.12 2018/02/04 20:22:17 mrg Exp $ */ +/* $NetBSD: bcopy.c,v 1.13 2018/02/12 11:14:15 martin Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)bcopy.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: bcopy.c,v 1.12 2018/02/04 20:22:17 mrg Exp $"); +__RCSID("$NetBSD: bcopy.c,v 1.13 2018/02/12 11:14:15 martin Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -88,10 +88,6 @@ bcopy(const void *src0, void *dst0, size size_t t; unsigned long u; -#if !defined(_KERNEL) - _DIAGASSERT(length == 0); -#endif - if (length == 0 || dst == src) /* nothing to do */ goto done;