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
/
protocol.c
diff --git
a/src/protocol.c
b/src/protocol.c
index
eadca13
..
3c96683
100644
(file)
--- a/
src/protocol.c
+++ b/
src/protocol.c
@@
-75,11
+75,11
@@
bool send_request(connection_t *c, const char *format, ...) {
input buffer anyway */
va_start(args, format);
input buffer anyway */
va_start(args, format);
- len = vsnprintf(buffer, sizeof
buffer
, format, args);
- buffer[sizeof
buffer
- 1] = 0;
+ len = vsnprintf(buffer, sizeof
(buffer)
, format, args);
+ buffer[sizeof
(buffer)
- 1] = 0;
va_end(args);
va_end(args);
- if(len < 0 || len > sizeof
buffer
- 1) {
+ if(len < 0 || len > sizeof
(buffer)
- 1) {
logger(LOG_ERR, "Output buffer overflow while sending request to %s (%s)",
c->name, c->hostname);
return false;
logger(LOG_ERR, "Output buffer overflow while sending request to %s (%s)",
c->name, c->hostname);
return false;