You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/dnstracer/files/dnstracer-1.9-argv0.patch

12 lines
343 B

--- a/dnstracer.c
+++ b/dnstracer.c
@@ -1619,7 +1619,7 @@
if (argv[0] == NULL) usage();
// check for a trailing dot
- strcpy(argv0, argv[0]);
+ strncpy(argv0, argv[0], NS_MAXDNAME);
if (argv0[strlen(argv[0]) - 1] == '.') argv0[strlen(argv[0]) - 1] = 0;
printf("Tracing to %s[%s] via %s, maximum of %d retries\n",