mirror of git://sourceware.org/git/glibc.git
2005-08-08 Roland McGrath <roland@redhat.com>
* argp/argp-help.c (__argp_error): __asprintf -> vasprintf. (__argp_failure): Likewise.
This commit is contained in:
parent
1d9aa9ce62
commit
c7b2c636e8
|
|
@ -1766,7 +1766,7 @@ __argp_error (const struct argp_state *state, const char *fmt, ...)
|
||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
char *buf;
|
char *buf;
|
||||||
|
|
||||||
if (__asprintf (&buf, fmt, ap) < 0)
|
if (vasprintf (&buf, fmt, ap) < 0)
|
||||||
buf = NULL;
|
buf = NULL;
|
||||||
|
|
||||||
__fxprintf (stream, "%s: %s\n",
|
__fxprintf (stream, "%s: %s\n",
|
||||||
|
|
@ -1836,7 +1836,7 @@ __argp_failure (const struct argp_state *state, int status, int errnum,
|
||||||
#ifdef _LIBC
|
#ifdef _LIBC
|
||||||
char *buf;
|
char *buf;
|
||||||
|
|
||||||
if (__asprintf (&buf, fmt, ap) < 0)
|
if (vasprintf (&buf, fmt, ap) < 0)
|
||||||
buf = NULL;
|
buf = NULL;
|
||||||
|
|
||||||
__fxprintf (stream, ": %s", buf);
|
__fxprintf (stream, ": %s", buf);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue