aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/rdist/expand.c
diff options
context:
space:
mode:
authorNate Williams <nate@FreeBSD.org>1996-07-12 04:00:15 +0000
committerNate Williams <nate@FreeBSD.org>1996-07-12 04:00:15 +0000
commit746a4321651afba5ff233efecab3c13e480d2594 (patch)
tree1d06edc5c68eb7a31b373b7e256b7588779eb925 /usr.bin/rdist/expand.c
parent61ce6d635cf6a2dc36170b06935dee9d4b90c3c8 (diff)
downloadsrc-746a4321651afba5ff233efecab3c13e480d2594.tar.gz
src-746a4321651afba5ff233efecab3c13e480d2594.zip
Notes
Diffstat (limited to 'usr.bin/rdist/expand.c')
-rw-r--r--usr.bin/rdist/expand.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/rdist/expand.c b/usr.bin/rdist/expand.c
index 6b5fd17d233f..555dbf14776d 100644
--- a/usr.bin/rdist/expand.c
+++ b/usr.bin/rdist/expand.c
@@ -180,12 +180,13 @@ expstr(s)
*tail = savec;
if (tp != NULL) {
for (; tp != NULL; tp = tp->n_next) {
- sprintf(buf, "%s%s%s", s, tp->n_name, tail);
+ snprintf(buf, sizeof(buf),
+ "%s%s%s", s, tp->n_name, tail);
expstr(buf);
}
return;
}
- sprintf(buf, "%s%s", s, tail);
+ snprintf(buf, sizeof(buf), "%s%s", s, tail);
expstr(buf);
return;
}