ossp-pkg/path/path_abs2rel.c 1.2 -> 1.3
--- path_abs2rel.c 2002/08/03 10:23:41 1.2
+++ path_abs2rel.c 2003/02/16 11:38:11 1.3
@@ -89,11 +89,11 @@
goto erange;
strcpy(result, path);
goto finish;
- }
+ }
else if (*base != '/' || !size) {
errno = EINVAL;
return NULL;
- }
+ }
else if (size == 1) {
goto erange;
}
@@ -143,7 +143,7 @@
if (rp + strlen(branch + 1) > endp)
goto erange;
strcpy(rp, branch + 1);
- }
+ }
else {
*--rp = 0;
}
|
|