mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
ip/traceroute: sprint() -> snprint()
This commit is contained in:
parent
ce825aabe0
commit
61f028fdac
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ call(DS *ds, char *clone, char *dest, int ttl, long *interval)
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue