← Commit list

1a6adbd71

Denis Vlasenko
Denis Vlasenko
2009-03-09
FAILED Duration: 37s

Subject

uniq: strncmp(a,b, -1) might be problematic, use INT_MAX instead

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/uniq.c+1 -1
@@ -45,7 +45,7 @@ int uniq_main(int argc UNUSED_PARAM, char **argv)
};
skip_fields = skip_chars = 0;
- max_chars = -1;
+ max_chars = INT_MAX;
opt_complementary = "f+:s+:w+";
opt = getopt32(argv, "cduf:s:w:", &skip_fields, &skip_chars, &max_chars);