Dircache: Rework and simplify dircache_copy_path().
commit9784cad50440ebec0fdd8306daebb718b9b9b8c9
authorThomas Martitz <thomas.martitz@student.htw-berlin.de>
Fri, 27 May 2011 12:44:23 +0000 (27 14:44 +0200)
committerThomas Martitz <thomas.martitz@student.htw-berlin.de>
Fri, 27 May 2011 12:44:23 +0000 (27 14:44 +0200)
treebe1ee554c273be15774f107f74e2e137ef01df39
parent1f382717d3230ca7b6cd8032ee276d29a2e8598b
Dircache: Rework and simplify dircache_copy_path().

Use a recursive helper function with strlcat to build up the path backwards. This way the tree doesn't need to be walked twice and no extraneous size calculation is needed.
firmware/common/dircache.c