git: plan9front

Download patch

ref: 61f028fdacb96dddf66d5ff2edeefc530a00cb58
parent: ce825aabe03cab00b3e36eb4f965c15e1b7acbf4
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Oct 28 21:03:04 EDT 2024

ip/traceroute: sprint() -> snprint()

--- a/sys/src/cmd/ip/traceroute.c
+++ b/sys/src/cmd/ip/traceroute.c
@@ -270,7 +270,7 @@
 	msg[n] = 0;
 
 	/* open data file */
-	sprint(file, "%s/%s/%s/data", ds->netdir, ds->proto, msg);
+	snprint(file, sizeof(file), "%s/%s/%s/data", ds->netdir, ds->proto, msg);
 	dfd = open(file, ORDWR);
 	if(dfd < 0)
 		goto out;
--