examples:dns_matching: fixed loop break condition
examples:dns_matching: fixed loop break condition

The for loop was copying garbase characters after domain name.
Fixed this by adding correct terminating condition. Also removed
unnecessary code

Signed-off-by: Prashant Bhole <04643e250edae3f43c01ad172f0694bf2d0ecbdf@lab.ntt.co.jp>

brendangregg/bcc,mcaleavya/bcc,brendangregg/bcc,brendangregg/bcc,iovisor/bcc,mcaleavya/bcc,mcaleavya/bcc,tuxology/bcc,tuxology/bcc,brendangregg/bcc,iovisor/bcc,mcaleavya/bcc,iovisor/bcc,iovisor/bcc,tuxology/bcc,iovisor/bcc,mcaleavya/bcc,tuxology/bcc,tuxology/bcc,brendangregg/bcc