troglobit / netcalc

Simplified clone of sipcalc with ipcalc looks
BSD 3-Clause "New" or "Revised" License
67 stars 12 forks source link

output.c: don't prefix "Compressed IPv6" with previous output #2

Closed vincentbernat closed 9 years ago

vincentbernat commented 9 years ago

The compressed version of the IPv6 address is computed using a succession of strlcat(). The buffer needs to be empty for this to work as expected.

buffer[0] = '\0'; would be sufficient but I did notice that memset() was used everywhere else.

troglobit commented 9 years ago

Good catch, thanks!