projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tinc-gui: Use ArgumentParser, default to python2
[tinc]
/
src
/
subnet_parse.c
diff --git
a/src/subnet_parse.c
b/src/subnet_parse.c
index
c919b59
..
611d6bd
100644
(file)
--- a/
src/subnet_parse.c
+++ b/
src/subnet_parse.c
@@
-401,11
+401,8
@@
bool net2str(char *netstr, int len, const subnet_t *subnet) {
len -= result;
}
len -= result;
}
- if (subnet->weight != DEFAULT_WEIGHT)
{
+ if (subnet->weight != DEFAULT_WEIGHT)
snprintf(netstr, len, "#%d", subnet->weight);
snprintf(netstr, len, "#%d", subnet->weight);
- netstr += result;
- len -= result;
- }
return true;
}
return true;
}