projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert sizeof foo to sizeof(foo).
[tinc]
/
src
/
xalloc.h
diff --git
a/src/xalloc.h
b/src/xalloc.h
index
468d6bb
..
9d3a71e
100644
(file)
--- 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];
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);
if(result < 0)
abort();
*strp = xstrdup(buf);