diff options
Diffstat (limited to 'usr.sbin/ppp/iplist.c')
-rw-r--r-- | usr.sbin/ppp/iplist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/iplist.c b/usr.sbin/ppp/iplist.c index f24455ecf2a..aa555039368 100644 --- a/usr.sbin/ppp/iplist.c +++ b/usr.sbin/ppp/iplist.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: iplist.c,v 1.2 1997/12/21 14:27:05 brian Exp $ + * $Id: iplist.c,v 1.3 1997/12/23 22:38:02 brian Exp $ */ #include <sys/types.h> @@ -149,7 +149,7 @@ iplist_next(struct iplist *list) int iplist_setsrc(struct iplist *list, const char *src) { - strncpy(list->src, src, sizeof(list->src)); + strncpy(list->src, src, sizeof(list->src)-1); list->src[sizeof(list->src)-1] = '\0'; list->cur.srcptr = list->src; do { |