*
* Copyright (c) 2007--2008 Martin Mares <mj@ucw.cz>
*
- * Can be freely distributed and used under the terms of the GNU GPL.
+ * Can be freely distributed and used under the terms of the GNU GPL v2+.
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <string.h>
default:
return NULL;
}
- sprintf(dnsname, "%s.%s", name, domain);
+ sprintf(dnsname, "%.100s.%.100s", name, domain);
a->debug("Resolving %s\n", dnsname);
if (!resolver_inited)