summaryrefslogtreecommitdiffstats
path: root/polyp/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/util.c')
-rw-r--r--polyp/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/polyp/util.c b/polyp/util.c
index 6e75c240..98d91075 100644
--- a/polyp/util.c
+++ b/polyp/util.c
@@ -35,6 +35,7 @@
#include <sys/types.h>
#include "util.h"
+#include "xmalloc.h"
void pa_make_nonblock_fd(int fd) {
int v;
@@ -129,8 +130,7 @@ char *pa_sprintf_malloc(const char *format, ...) {
int r;
va_list ap;
- c = realloc(c, size);
- assert(c);
+ c = pa_xrealloc(c, size);
va_start(ap, format);
r = vsnprintf(c, size, format, ap);