DragonFly BSD
DragonFly commits List (threaded) for 2005-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/lib/libc/gen dirname.c


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 28 Apr 2005 06:45:42 -0700 (PDT)

joerg       2005/04/28 06:45:42 PDT

DragonFly src repository

  Modified files:
    lib/libc/gen         dirname.c 
  Log:
  Fix the sign issue by reordering the operations. Use memcpy instead
  of strncpy since we know that no '\0' can occur in the string. We have
  also checked the size of the string already.
  
  Revision  Changes    Path
  1.6       +2 -2      src/lib/libc/gen/dirname.c


http://www.dragonflybsd.org/cvsweb/src/lib/libc/gen/dirname.c.diff?r1=1.5&r2=1.6&f=u



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]