The "uniq" command returns (at least on ARM) only the first line of the input. Reason: In "uniq_main" the variable "max_chars" is being initialized with -1. Then this variable is being passed to "strncmp". Quickfix: After changing "strncmp" to "strcmp" it works fine again...
Does it work for you if you replace -1 with INT_MAX?
(In reply to comment #1) > Does it work for you if you replace -1 with INT_MAX? > Haven't tried it, but I'm pretty sure that it will also work as strncmp is basically working on our system...