cvs commit: src/usr.bin/ftp complete.c

Joerg Sonnenberger joerg at crater.dragonflybsd.org
Mon Aug 8 09:43:37 PDT 2005


joerg       2005/08/08 09:43:33 PDT

DragonFly src repository

  Modified files:
    usr.bin/ftp          complete.c 
  Log:
  Both file and dp->d_name are NUL-terminated, so it pointless to first
  run strlen, compare the size and do a strncmp afterwards -- just strcmp.
  
  Revision  Changes    Path
  1.4       +1 -3      src/usr.bin/ftp/complete.c


http://www.dragonflybsd.org/cvsweb/src/usr.bin/ftp/complete.c.diff?r1=1.3&r2=1.4&f=u





More information about the Commits mailing list