summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2010-12-19 09:57:05 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2010-12-19 09:57:05 -0800
commit4b4ec3aeaa7cf5f5a6490ad2ddc2b07d090214cb (patch)
tree6af990057c63f27bd8b109820860497ed6f3b071
parent308c8d3d5fbf96c1d4f313def50d4b001ac0d685 (diff)
Use correct string pointer in asprintf() fallback
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/process.c2
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);
}
}