diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/nstring.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/nstring.c b/lib/util/nstring.c index 623fd7b7..29da8fe5 100644 --- a/lib/util/nstring.c +++ b/lib/util/nstring.c @@ -84,7 +84,7 @@ pm_asprintf(const char ** const resultP, va_start(varargs, fmt); - vsnprintf(NULL, 0, fmt, varargs, &dryRunLen); + dryRunLen = vsnprintf(NULL, 0, fmt, varargs); va_end(varargs); @@ -101,7 +101,7 @@ pm_asprintf(const char ** const resultP, va_start(varargs, fmt); - vsnprintf(buffer, allocSize, fmt, varargs, &realLen); + realLen = vsnprintf(buffer, allocSize, fmt, varargs); assert(realLen == dryRunLen); va_end(varargs); |