Skip to content
Snippets Groups Projects
Commit 20296b25 authored by yorhel's avatar yorhel
Browse files

Fixed rpath() bug on /.

git-svn-id: svn://blicky.net/ncdu/trunk@47 ce56bc8d-f834-0410-b703-f827bd498a76
parent ca7ae5c1
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ svn - ?
- Current directory is assumed when no directory is specified
- Size graph uses the apparent size if that is displayed
- Items are ordered by displayed size rather than disk usage
- Fixed rpath() bug on '/.'
1.4 - 2008-09-10
- Removed the startup window
......
......@@ -101,6 +101,11 @@ char *rpath(const char *from, char *to) {
break;
}
to[j+1] = 0;
/* make sure we do have something left in case our path is / */
if(to[0] == 0) {
to[0] = '/';
to[1] = 0;
}
/* append 'app' */
if(app[0] != 0)
strcat(to, app);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment