summaryrefslogtreecommitdiff
path: root/usr.sbin/spppcontrol
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-29 09:48:15 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-29 09:48:15 +0000
commitfede8b436e7e75e1b2bf4cd816f4459fb7d35613 (patch)
treea414b9fb30722bc608d14e1ffb14686cd89b5a88 /usr.sbin/spppcontrol
parent0f255ec3ff0a620b4f8064781b438d7cf26407f5 (diff)
snprintf blah blah blah
Diffstat (limited to 'usr.sbin/spppcontrol')
-rw-r--r--usr.sbin/spppcontrol/spppcontrol.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/spppcontrol/spppcontrol.c b/usr.sbin/spppcontrol/spppcontrol.c
index 6f69873e9c4..977b501682d 100644
--- a/usr.sbin/spppcontrol/spppcontrol.c
+++ b/usr.sbin/spppcontrol/spppcontrol.c
@@ -222,7 +222,7 @@ proto_name(u_short proto)
case PPP_PAP: return "pap";
case PPP_CHAP: return "chap";
}
- sprintf(buf, "0x%x", (unsigned)proto);
+ snprintf(buf, sizeof buf, "0x%x", (unsigned)proto);
return buf;
}
@@ -232,8 +232,8 @@ authflags(u_short flags)
static char buf[30];
buf[0] = '\0';
if (flags & AUTHFLAG_NOCALLOUT)
- strcat(buf, " callin");
+ strlcat(buf, " callin", sizeof buf);
if (flags & AUTHFLAG_NORECHALLENGE)
- strcat(buf, " norechallenge");
+ strlcat(buf, " norechallenge", sizeof buf);
return buf;
}