]> git.meshlink.io Git - meshlink/blobdiff - src/xalloc.h
Convert sizeof foo to sizeof(foo).
[meshlink] / src / xalloc.h
index f6b895a5a61ae06456b4065324e55e8e13158208..e521d64a203d3b82c98a6c6e08d7510db24a832c 100644 (file)
@@ -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);