Fixed rpath() bug on /.
git-svn-id: svn://blicky.net/ncdu/trunk@47 ce56bc8d-f834-0410-b703-f827bd498a76
Этот коммит содержится в:
родитель
ca7ae5c142
Коммит
20296b2567
@ -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);
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user