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

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

From: Jeroen Ruigrok/asmodai <asmodai@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 18 Sep 2005 09:09:45 -0700 (PDT)

asmodai     2005/09/18 09:09:45 PDT

DragonFly src repository

  Modified files:
    lib/libc/gen         basename.c dirname.c 
  Restore the MAXPATHLEN comparison in basename.c, don't forget that strlcpy()
  returns the size of the *source string* and not destination.
  Rework dirname.c as well to a hybrid of the old and new situation due to path
  being a potential large source string than we want to compare with to
  Get rid of the old strncpy() construct though by using strlcpy().
  Revision  Changes    Path
  1.8       +1 -1      src/lib/libc/gen/basename.c
  1.10      +2 -1      src/lib/libc/gen/dirname.c


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