mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-16 10:38:40 -09:00
Fixed rpath() bug on /.
git-svn-id: svn://blicky.net/ncdu/trunk@47 ce56bc8d-f834-0410-b703-f827bd498a76
This commit is contained in:
parent
ca7ae5c142
commit
20296b2567
2 changed files with 6 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ svn - ?
|
||||||
- Current directory is assumed when no directory is specified
|
- Current directory is assumed when no directory is specified
|
||||||
- Size graph uses the apparent size if that is displayed
|
- Size graph uses the apparent size if that is displayed
|
||||||
- Items are ordered by displayed size rather than disk usage
|
- Items are ordered by displayed size rather than disk usage
|
||||||
|
- Fixed rpath() bug on '/.'
|
||||||
|
|
||||||
1.4 - 2008-09-10
|
1.4 - 2008-09-10
|
||||||
- Removed the startup window
|
- Removed the startup window
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,11 @@ char *rpath(const char *from, char *to) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
to[j+1] = 0;
|
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' */
|
/* append 'app' */
|
||||||
if(app[0] != 0)
|
if(app[0] != 0)
|
||||||
strcat(to, app);
|
strcat(to, app);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue