summaryrefslogtreecommitdiff
path: root/src/UriRecompose.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhsoting.net>2019-01-13 12:37:00 +0100
committerJörg Frings-Fürst <debian@jff-webhsoting.net>2019-01-13 12:37:00 +0100
commitd289e0569e0317ffd228d8d0bf9f4a7a7a4fc41c (patch)
treebff28a21e5e235d32cd14177b0b1b93935bbaeb5 /src/UriRecompose.c
parent4525c4951ed4d49ceb65525cea14b9aa35f1d3fc (diff)
parenta567bbfee78959e9c35f0722328f22d24ef39d2b (diff)
Merge branch 'release/debian/0.9.1-1'debian/0.9.1-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) {