libndp: fix [cppcheck] Undefined behavior: Variable 'buf' is used as parameter and destination in s[n]printf()

cppcheck --enable=all --inconclusive --std=posix .

ndp_msg_opt_dnssl_domain():
			if (dom_len > len)
				return NULL;

			if (strlen(buf))
---->				sprintf(buf, "%s.", buf);
			buf[strlen(buf) + dom_len] = '\0';
			memcpy(buf + strlen(buf), ptr, dom_len);

So just use strcat instead.

Reported-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Add missing <stdarg.h> include for va_list

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
1.3 release

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Imported Upstream version 1.3