X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fxalloc.h;fp=src%2Fxalloc.h;h=e521d64a203d3b82c98a6c6e08d7510db24a832c;hb=76c7550c8ab0e9c0ee14a9c396baa008cfb9bc42;hp=f6b895a5a61ae06456b4065324e55e8e13158208;hpb=3c56342ef05b0f81bcd9feba5d86e2bff8a0cb94;p=meshlink diff --git a/src/xalloc.h b/src/xalloc.h index f6b895a5..e521d64a 100644 --- a/src/xalloc.h +++ b/src/xalloc.h @@ -54,7 +54,7 @@ static inline char *xstrdup(const char *s) { static inline int xvasprintf(char **strp, const char *fmt, va_list ap) { #ifdef HAVE_MINGW char buf[1024]; - int result = vsnprintf(buf, sizeof buf, fmt, ap); + int result = vsnprintf(buf, sizeof(buf), fmt, ap); if(result < 0) abort(); *strp = xstrdup(buf);