From: R.E. Wolff Date: Sat, 14 Jan 2017 23:51:47 +0000 (+0100) Subject: asn fix from meingtsla, fixes #163. Pong! X-Git-Tag: v0.88~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4c4ef8e5547ff3c690aa9f2cd53d1d84f4c1a08;p=thirdparty%2Fmtr.git asn fix from meingtsla, fixes #163. Pong! --- diff --git a/ui/asn.c b/ui/asn.c index c38034b..622d7ba 100644 --- a/ui/asn.c +++ b/ui/asn.c @@ -136,8 +136,7 @@ static char *ipinfo_lookup(const char *domain) { txt = (char*)txtrec; pt++; - xstrncpy(txt, (char*) pt, txtlen); - txt[txtlen] = 0; + xstrncpy(txt, (char*) pt, txtlen + 1); if (iihash) DEB_syslog(LOG_INFO, "Malloc-txt(%p): %s", txt, txt);