From b9ff2077b661187ac898e0fa835c2fe492e7ddc2 Mon Sep 17 00:00:00 2001 From: Ishan Jain Date: Sun, 10 Dec 2023 01:08:30 +0530 Subject: [PATCH] added null terminator --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 615fee1..6ea55b0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -95,6 +95,8 @@ impl Qname { buf.push(*i); buf.extend(v.bytes()); } + + buf.push(0); } }