Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37915554
en ru br
ALT Linux repos
S:1.9-alt2
5.0: 1.9-alt1
4.1: 1.8-alt1
4.0: 1.8-alt1
3.0: 1.8-alt1

Group :: Networking/Other
RPM: dnstracer

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: dnstracer-1.9-argv0.patch
Download


--- 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",
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin