diff options
author | Jörg Frings-Fürst <debian@jff-webhsoting.net> | 2019-01-12 17:39:31 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhsoting.net> | 2019-01-12 17:39:31 +0100 |
commit | 055c93874bf5256b29df5420318d82c38e0b201e (patch) | |
tree | 7b7f82d9ac64641da59e9948883e1289ad7b7f38 /src/UriRecompose.c | |
parent | a08fa80b53e2228c96f6f49d0e5040348c57e97f (diff) | |
parent | 6ada0507368fa5980bbfbe747480b68c632d7c37 (diff) |
Merge branch 'feature/upstream' into develop
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) { |