X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fxalloc.h;h=9d3a71e5f5992ef9c6e0fbd6bb620c9edbdd9c2a;hp=468d6bb1bf162e9cd43c0720cf85a26b463eb714;hb=985d19caf20058db3c764f0f6fbeafa8bcc59fcc;hpb=d178b583df9fe2bf3ebb3a7377203efc5c46df32 diff --git a/src/xalloc.h b/src/xalloc.h index 468d6bb1..9d3a71e5 100644 --- a/src/xalloc.h +++ b/src/xalloc.h @@ -55,7 +55,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);