]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/names-net.c
windows: Comment on MSVC inline asm issues
[pciutils.git] / lib / names-net.c
index 655b4861bc8c81a21ed3f9ee30009dc91999ff6d..14141f4c2be879cd6d96e740422f3acea16d9579 100644 (file)
@@ -3,7 +3,9 @@
  *
  *     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>
@@ -196,7 +198,7 @@ char
     default:
       return NULL;
     }
-  sprintf(dnsname, "%s.%s", name, domain);
+  sprintf(dnsname, "%.100s.%.100s", name, domain);
 
   a->debug("Resolving %s\n", dnsname);
   if (!resolver_inited)