summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2021-05-04 13:06:31 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2021-05-04 13:06:31 +0100
commit8b4b6ac90766b11fa74fa3001778b49456adbe42 (patch)
tree523dfd39992a055328527f03843e1ea013e5aa66 /src
parent18207bb52923bcd958c6bd2bcd363fa331a17362 (diff)
Fix ${ipv6norm:}
Diffstat (limited to 'src')
-rw-r--r--src/src/host.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/src/host.c b/src/src/host.c
index 18f1b54f8..5e66517e8 100644
--- a/src/src/host.c
+++ b/src/src/host.c
@@ -1201,9 +1201,9 @@ for (c = buffer, k = -1, i = 0; i < 8; i++)
c++;
}
-c[-1] = '\0'; /* drop trailing colon */
+*--c = '\0'; /* drop trailing colon */
-/* debug_printf("%s: D k %d <%s> <%s>\n", __FUNCTION__, k, d, d + 2*(k+1)); */
+/* debug_printf("%s: D k %d <%s> <%s>\n", __FUNCTION__, k, buffer, buffer + 2*(k+1)); */
if (k >= 0)
{ /* collapse */
c = d + 2*(k+1);