summaryrefslogtreecommitdiff
path: root/src/UriRecompose.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhsoting.net>2019-01-12 17:38:40 +0100
committerJörg Frings-Fürst <debian@jff-webhsoting.net>2019-01-12 17:38:40 +0100
commit63b80068976fbc5460c284aef0e6560abcf13e68 (patch)
tree39c607425a3eea7b8f668e0120f6217857f71b14 /src/UriRecompose.c
parent37162209a3da8812203022de6b81e4f05015043a (diff)
New upstream version 0.9.1upstream/0.9.1
Diffstat (limited to 'src/UriRecompose.c')
-rw-r--r--src/UriRecompose.c2
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) {