sort: fix multiple -k (was ignoring all except last)

This commit is contained in:
Denis Vlasenko
2007-02-17 18:11:45 +00:00
parent ec27feb045
commit 54cf511ce1
8 changed files with 26 additions and 10 deletions

View File

@@ -157,7 +157,7 @@ int wget_main(int argc, char **argv)
if (headers_llist) {
int size = 1;
char *cp;
llist_t *ll = headers_llist = rev_llist(headers_llist);
llist_t *ll = headers_llist = llist_rev(headers_llist);
while (ll) {
size += strlen(ll->data) + 2;
ll = ll->link;