diff options
author | Jörg Frings-Fürst <debian@jff-webhsoting.net> | 2019-01-12 17:38:40 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhsoting.net> | 2019-01-12 17:38:40 +0100 |
commit | 63b80068976fbc5460c284aef0e6560abcf13e68 (patch) | |
tree | 39c607425a3eea7b8f668e0120f6217857f71b14 /src/UriRecompose.c | |
parent | 37162209a3da8812203022de6b81e4f05015043a (diff) |
New upstream version 0.9.1upstream/0.9.1
Diffstat (limited to 'src/UriRecompose.c')
-rw-r--r-- | src/UriRecompose.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/UriRecompose.c b/src/UriRecompose.c index 2705cf1..2cdb92d 100644 --- a/src/UriRecompose.c +++ b/src/UriRecompose.c @@ -246,7 +246,7 @@ static URI_INLINE int URI_FUNC(ToStringEngine)(URI_CHAR * dest, } } } else { - (*charsRequired) += charsToWrite + 1; + (*charsRequired) += charsToWrite + ((i == 3) ? 0 : 1); } } } else if (uri->hostData.ip6 != NULL) { |