Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Dec 1997 17:10:14 -0800 (PST)
From:      Brian Somers <brian@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-usrsbin@FreeBSD.ORG
Subject:   cvs commit: src/usr.sbin/ppp chat.c command.c modem.c
Message-ID:  <199712180110.RAA17516@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
brian       1997/12/17 17:10:14 PST

  Modified files:
    usr.sbin/ppp         chat.c command.c modem.c 
  Log:
  Replace
  
    strcpy(a, b);  /* a and b are the same size */
  
  with
  
    strncpy(a, b, sizeof(a));
    a[sizeof(a)-1] = '\0';
  
  Making the code `correct at a glance'.
  
  Suggested by: Theo de Raadt <deraadt@cvs.openbsd.org>
  
  Revision  Changes    Path
  1.40      +3 -2      src/usr.sbin/ppp/chat.c
  1.114     +3 -2      src/usr.sbin/ppp/command.c
  1.68      +3 -2      src/usr.sbin/ppp/modem.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712180110.RAA17516>