[Bug 157] New: uniq returns only the first line
bugzilla at busybox.net
bugzilla at busybox.net
Mon Mar 9 08:52:30 UTC 2009
https://bugs.busybox.net/show_bug.cgi?id=157
Target: ARM11
Build: 1.13.2
Summary: uniq returns only the first line
Product: Busybox
Version: 1.13.x
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at busybox.net
ReportedBy: volker.marks at novero.com
CC: busybox-cvs at busybox.net
Estimated Hours: 0.0
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...
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list