utils: fix reallocarray macro

This commit is contained in:
Wim Taymans 2022-05-27 16:06:41 +02:00
parent 7e4f99512f
commit 3e7f975f83

View file

@ -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
/**
* \}