From: Sam Hartman Date: Tue, 9 Aug 2011 20:00:07 +0000 (+0000) Subject: In last-resort fallback va_copy change 'memcmp' to 'memcpy' X-Git-Tag: krb5-1.10-alpha1~295 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=378e40d140285e42950494bbf19b2746028109c1;p=krb5.git In last-resort fallback va_copy change 'memcmp' to 'memcpy' Signed-off-by: Kevin Wasserman Signed-off-by: Sam Hartman git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25080 dc483132-0cff-0310-8789-dd5450dbe970 --- 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. */