Subject: port-vax/24846: stdarg.h for vax has an error in one definition of __va_copy()
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dhgutteridge@hotmail.com>
List: netbsd-bugs
Date: 03/19/2004 04:03:54
>Number: 24846
>Category: port-vax
>Synopsis: stdarg.h for vax has an error in one definition of __va_copy()
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-vax-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 19 04:04:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: David H. Gutteridge
>Release: N/A
>Organization:
>Environment:
N/A
>Description:
One of the definitions of __va_copy() in stdarg.h for vax is using the comparison instead of assignment operator. I've included an incredibly trivial patch below.
>How-To-Repeat:
>Fix:
--- stdarg.h.~1.13.~ Sat Jul 1 06:38:53 2000
+++ stdarg.h Thu Mar 18 22:46:19 2004
@@ -64,7 +64,7 @@
#define va_end(ap)
-#define __va_copy(dest, src) ((dest) == (src))
+#define __va_copy(dest, src) ((dest) = (src))
#endif
#if !defined(_ANSI_SOURCE) && \
>Release-Note:
>Audit-Trail:
>Unformatted: