mirror of
https://github.com/sheumann/hush.git
synced 2024-11-18 17:10:36 +00:00
uniq: strncmp(a,b, -1) might be problematic, use INT_MAX instead
This commit is contained in:
parent
9257671c76
commit
1a6adbd71b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user