- minor shrinkage

This commit is contained in:
Bernhard Reutner-Fischer 2006-12-14 11:27:58 +00:00
parent f7b0d4a3e5
commit 56b956952e

View File

@ -1105,10 +1105,12 @@ static void diffdir(char *p1, char *p2)
/* Check for trailing slashes. */ /* Check for trailing slashes. */
if (p1[strlen(p1) - 1] == '/') dp1 = last_char_is(p1, '/');
p1[strlen(p1) - 1] = '\0'; if (dp1 != NULL)
if (p2[strlen(p2) - 1] == '/') *dp1 = '\0';
p2[strlen(p2) - 1] = '\0'; dp2 = last_char_is(p2, '/');
if (dp2 != NULL)
*dp2 = '\0';
/* Get directory listings for p1 and p2. */ /* Get directory listings for p1 and p2. */