From 378e40d140285e42950494bbf19b2746028109c1 Mon Sep 17 00:00:00 2001 From: Sam Hartman <hartmans@mit.edu> Date: Tue, 9 Aug 2011 20:00:07 +0000 Subject: [PATCH] In last-resort fallback va_copy change 'memcmp' to 'memcpy' Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com> Signed-off-by: Sam Hartman <hartmans@painless-security.com> git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25080 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/k5-platform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/k5-platform.h b/src/include/k5-platform.h index 147f87fb7..2f24ffaff 100644 --- a/src/include/k5-platform.h +++ b/src/include/k5-platform.h @@ -916,7 +916,7 @@ set_cloexec_file(FILE *f) allocate some storage pointed to by the va_list, and in that case we'll just lose. If anyone cares, we could try to devise a test for that case. */ -#define va_copy(dest, src) memcmp(dest, src, sizeof(va_list)) +#define va_copy(dest, src) memcpy(dest, src, sizeof(va_list)) #endif /* Provide strlcpy/strlcat interfaces. */ -- 2.26.2