Fix a buglet and a couple of stylistic nits from Bruce.

This commit is contained in:
Poul-Henning Kamp 1997-09-15 08:25:14 +00:00
parent 97bc6e857c
commit 9c2d6fcf05

View File

@ -66,7 +66,7 @@ getcwd(pt, size)
ino_t root_ino;
size_t ptsize, upsize;
int save_errno;
char *ept, *eup, *up;
char *ept, *eup, *up, c;
/*
* If no buffer specified by the user, allocate one as necessary.
@ -89,8 +89,7 @@ getcwd(pt, size)
return (NULL);
ept = pt + ptsize;
}
if (!__getcwd(pt,ptsize)) {
char c;
if (!__getcwd(pt, ept-pt)) {
bpt = pt;
ept = pt + strlen(pt) - 1;
while (bpt < ept) {