diff options
Diffstat (limited to 'net-analyzer/dnstracer/files')
-rw-r--r-- | net-analyzer/dnstracer/files/dnstracer-1.9-argv0.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net-analyzer/dnstracer/files/dnstracer-1.9-argv0.patch b/net-analyzer/dnstracer/files/dnstracer-1.9-argv0.patch new file mode 100644 index 000000000000..c83c38ea7d74 --- /dev/null +++ b/net-analyzer/dnstracer/files/dnstracer-1.9-argv0.patch @@ -0,0 +1,11 @@ +--- 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", |