diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-29 09:48:15 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-29 09:48:15 +0000 |
commit | fede8b436e7e75e1b2bf4cd816f4459fb7d35613 (patch) | |
tree | a414b9fb30722bc608d14e1ffb14686cd89b5a88 /usr.sbin/spppcontrol | |
parent | 0f255ec3ff0a620b4f8064781b438d7cf26407f5 (diff) |
snprintf blah blah blah
Diffstat (limited to 'usr.sbin/spppcontrol')
-rw-r--r-- | usr.sbin/spppcontrol/spppcontrol.c | 6 |
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; } |