]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2005-08-08 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@gnu.org>
Tue, 9 Aug 2005 00:58:08 +0000 (00:58 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 9 Aug 2005 00:58:08 +0000 (00:58 +0000)
* argp/argp-help.c (__argp_error): __asprintf -> vasprintf.
(__argp_failure): Likewise.

argp/argp-help.c

index ee61ed4d5c522afc146826cc0870fb849b0b384b..abd59c12f9ce76367d195c13b7a673f8c5a9c90e 100644 (file)
@@ -1766,7 +1766,7 @@ __argp_error (const struct argp_state *state, const char *fmt, ...)
 #ifdef _LIBC
          char *buf;
 
-         if (__asprintf (&buf, fmt, ap) < 0)
+         if (vasprintf (&buf, fmt, ap) < 0)
            buf = NULL;
 
          __fxprintf (stream, "%s: %s\n",
@@ -1836,7 +1836,7 @@ __argp_failure (const struct argp_state *state, int status, int errnum,
 #ifdef _LIBC
              char *buf;
 
-             if (__asprintf (&buf, fmt, ap) < 0)
+             if (vasprintf (&buf, fmt, ap) < 0)
                buf = NULL;
 
              __fxprintf (stream, ": %s", buf);