From: Bruno Haible Date: Wed, 24 Sep 2003 10:37:58 +0000 (+0000) Subject: Assume ANSI C. X-Git-Tag: v0.13~230 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=870f6b5b92fafd69eae3ad25b0f23f4f8083b305;p=thirdparty%2Fgettext.git Assume ANSI C. --- diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog index fce03c96f..22de4667d 100644 --- a/gettext-tools/lib/ChangeLog +++ b/gettext-tools/lib/ChangeLog @@ -1,3 +1,7 @@ +2003-09-21 Bruno Haible + + * vasprintf.c (int_vasprintf): Assume ANSI C when copying a structure. + 2003-09-16 Bruno Haible Portability to SunOS 4. diff --git a/gettext-tools/lib/vasprintf.c b/gettext-tools/lib/vasprintf.c index 2016e967f..d04b63e08 100644 --- a/gettext-tools/lib/vasprintf.c +++ b/gettext-tools/lib/vasprintf.c @@ -1,6 +1,6 @@ /* Like vsprintf but provides a pointer to malloc'd storage, which must be freed by the caller. - Copyright (C) 1994, 1998, 1999, 2000-2002 Free Software Foundation, Inc. + Copyright (C) 1994, 1998, 1999, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -40,9 +40,7 @@ int_vasprintf (char **result, const char *format, va_list *args) /* Add one to make sure that it is never zero, which might cause malloc to return NULL. */ size_t total_width = strlen (format) + 1; - va_list ap; - - memcpy (&ap, args, sizeof (va_list)); + va_list ap = *args; while (*p != '\0') {