← Commit list

56b956952

Bernhard Reutner-Fischer
Bernhard Reutner-Fischer
2006-12-14
FAILED Duration: 5s

Subject

- minor shrinkage

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

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