diff --git a/src/pipewire/utils.h b/src/pipewire/utils.h index 5a0dc6fd2..8f8e002b7 100644 --- a/src/pipewire/utils.h +++ b/src/pipewire/utils.h @@ -89,7 +89,7 @@ pw_strip(char *str, const char *whitespace); ssize_t pw_getrandom(void *buf, size_t buflen, unsigned int flags); #if !defined(reallocarray) -# define reallocarray(ptr, nmemb, size) realloc(ptr, nmemb * size) +# define reallocarray(ptr,nmemb,size) realloc((ptr), (nmemb) * (size)) #endif /** * \}