diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-12-19 09:57:05 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-12-19 09:57:05 -0800 |
commit | 4b4ec3aeaa7cf5f5a6490ad2ddc2b07d090214cb (patch) | |
tree | 6af990057c63f27bd8b109820860497ed6f3b071 | |
parent | 308c8d3d5fbf96c1d4f313def50d4b001ac0d685 (diff) |
Use correct string pointer in asprintf() fallback
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c index 58c6894..4aceafa 100644 --- a/src/process.c +++ b/src/process.c @@ -91,7 +91,7 @@ asprintf(char ** ret, const char *format, ...) _X_ATTRIBUTE_PRINTF(2,3) if (*ret != NULL) { va_start(ap, format); - len = vsnprintf(ret, len, format, ap); + len = vsnprintf(*ret, len, format, ap); va_end(ap); } } |