diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-15 13:03:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-15 20:20:30 -0400 |
commit | 287f6cb128c890e31faa951be6d42cd6801f4e59 (patch) | |
tree | ec88037acbe9bb7474a8acc2dc8593d8e63bf53b /src/common/compat.c | |
parent | 4b800408fa85ce0ac81a308c42d654b3357180d4 (diff) | |
download | tor-287f6cb128c890e31faa951be6d42cd6801f4e59.tar.gz tor-287f6cb128c890e31faa951be6d42cd6801f4e59.zip |
Fix up some comment issues spotted by rransom
Diffstat (limited to 'src/common/compat.c')
-rw-r--r-- | src/common/compat.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 3c5e9385e2..fc066da681 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -1481,7 +1481,12 @@ get_parent_directory(char *fname) fname += 2; } #endif - /* Now we want to remove the final character that */ + /* Now we want to remove all path-separators at the end of the string, + * and to remove the end of the string starting with the path separator + * before the last non-path-separator. In perl, this would be + * s#[/]*$##; s#/[^/]*$##; + * on a unixy platform. + */ cp = fname + strlen(fname); at_end = 1; while (--cp > fname) { |