diff --git a/control/common.h b/control/common.h index c260ff60f21fcb83e18a318948bf0e73f8be08d3..c86bf94ad82144c2cad722efee87dc948161ded8 100644 --- a/control/common.h +++ b/control/common.h @@ -127,7 +127,7 @@ static inline int chameleon_asprintf( char **strp, const char *fmt, ... ) int rc; va_start( ap, fmt ); - rc = asprintf( strp, fmt, ap ); + rc = vasprintf( strp, fmt, ap ); va_end( ap ); assert( rc != -1 );