cvs commit: src/libexec/atrun atrun.c

Yar Tikhiy yar at FreeBSD.org
Thu Jun 14 14:44:05 UTC 2007


yar         2007-06-14 14:44:04 UTC

  FreeBSD src repository

  Modified files:
    libexec/atrun        atrun.c 
  Log:
  Fix a typical off-by-one error that can result in an unterminated string:
  
          strncpy(dst, src, sizeof(dst));
  
  by substituting the safer strlcpy() for strncpy().
  
  X-Security:     none (the source string isn't user-supplied)
  
  Revision  Changes    Path
  1.20      +1 -1      src/libexec/atrun/atrun.c


More information about the cvs-src mailing list