]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Assume ANSI C.
authorBruno Haible <bruno@clisp.org>
Wed, 24 Sep 2003 10:37:58 +0000 (10:37 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:01 +0000 (12:11 +0200)
gettext-tools/lib/ChangeLog
gettext-tools/lib/vasprintf.c

index fce03c96f0894da32f7d57b7e6be488046405d16..22de4667d97bc12e981a93ddec7ddec2053f67cb 100644 (file)
@@ -1,3 +1,7 @@
+2003-09-21  Bruno Haible  <bruno@clisp.org>
+
+       * vasprintf.c (int_vasprintf): Assume ANSI C when copying a structure.
+
 2003-09-16  Bruno Haible  <bruno@clisp.org>
 
        Portability to SunOS 4.
index 2016e967f3915fb80a6bf4fb9f168d5b461ad742..d04b63e08c016851aa5836796eea6cb9ffa33729 100644 (file)
@@ -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')
     {