Fix yet a minor stylistic nit from Bruce (Doesn't he have more
important things to do ?? :-) Prepare for the likely case of a change in kernel algorithm.
This commit is contained in:
parent
11210c4ed5
commit
36dff60096
@ -89,13 +89,15 @@ getcwd(pt, size)
|
||||
return (NULL);
|
||||
ept = pt + ptsize;
|
||||
}
|
||||
if (!__getcwd(pt, ept-pt)) {
|
||||
bpt = pt;
|
||||
ept = pt + strlen(pt) - 1;
|
||||
while (bpt < ept) {
|
||||
c = *bpt;
|
||||
*bpt++ = *ept;
|
||||
*ept-- = c;
|
||||
if (!__getcwd(pt, ept - pt)) {
|
||||
if (*pt != '/') {
|
||||
bpt = pt;
|
||||
ept = pt + strlen(pt) - 1;
|
||||
while (bpt < ept) {
|
||||
c = *bpt;
|
||||
*bpt++ = *ept;
|
||||
*ept-- = c;
|
||||
}
|
||||
}
|
||||
return (pt);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user