summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/chat.c
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1996-12-15 20:39:30 +0000
committerpst <pst@FreeBSD.org>1996-12-15 20:39:30 +0000
commit7f6c21847423b44b057a2cfb319dd1d35ca935bf (patch)
tree4b4edf139101e6a0b72053dca0b43ccaf8063ebe /usr.sbin/ppp/chat.c
parent3f499be2dd9c6fab8e40217504ce60d413aeba68 (diff)
downloadFreeBSD-src-7f6c21847423b44b057a2cfb319dd1d35ca935bf.zip
FreeBSD-src-7f6c21847423b44b057a2cfb319dd1d35ca935bf.tar.gz
Avoid some buffer overrun problems.
Diffstat (limited to 'usr.sbin/ppp/chat.c')
-rw-r--r--usr.sbin/ppp/chat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/chat.c b/usr.sbin/ppp/chat.c
index 7c96e31..e831931 100644
--- a/usr.sbin/ppp/chat.c
+++ b/usr.sbin/ppp/chat.c
@@ -18,7 +18,7 @@
* Columbus, OH 43221
* (614)451-1883
*
- * $Id: chat.c,v 1.10 1996/05/11 20:48:20 phk Exp $
+ * $Id: chat.c,v 1.11 1996/06/09 20:40:56 ache Exp $
*
* TODO:
* o Support more UUCP compatible control sequences.
@@ -377,7 +377,7 @@ char *command, *out;
}
cp--;
}
- sprintf(tmp, "%s %s", command, cp);
+ snprintf(tmp, sizeof tmp, "%s %s", command, cp);
(void) MakeArgs(tmp, &vector);
pipe(fids);
OpenPOWER on IntegriCloud