Fix relative path goofup and overflows

The usage of strncat is a textbook case of when to use strlcat instead.
The double strlen is just wasting performance, assuming no buffer
overflows in strncat before.  And lastly, the program already cd'd into
the proper directory.  So for a relative path "foo" we created files
under "foo/foo/", not under "foo/".

Quite a number of bugs to fix by removing so little code.

Signed-off-by: Joern Engel <joern@logfs.org>
1 file changed
tree: 0c6331f4643bfc70626e51215c1aa1f7a3d9f73f
  1. cancd.c
  2. cancd.init
  3. cancd.spec
  4. kernel-list.h
  5. Makefile