commit | b1ea41673af5b636602cdfb0710dc176dfcc98a8 | [log] [tgz] |
---|---|---|
author | Joern Engel <joern@logfs.org> | Sun Dec 18 20:11:25 2011 -0800 |
committer | Joern Engel <joern@logfs.org> | Sun Dec 18 20:11:25 2011 -0800 |
tree | 0c6331f4643bfc70626e51215c1aa1f7a3d9f73f | |
parent | 3d48e466acd97cfa74492de92755d356f4ceba83 [diff] |
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>