X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=estr.c;h=2b3a1ef57b8b97d4a42d32a64860ed0c8d058de1;hb=6f50296ed88b670fbc50b5c951dd14fa36b65088;hp=9f8d7f074c6259b12410b0d96e921e563f309aa9;hpb=0d3c17d9ab127e5596c8fb97d65122b3b90f6b11;p=pkg%2Fabook.git diff --git a/estr.c b/estr.c index 9f8d7f0..2b3a1ef 100644 --- a/estr.c +++ b/estr.c @@ -1,12 +1,10 @@ /* - * - * estr.c + * $Id$ * - * by JH + * by JH * * Copyright (C) Jaakko Heinonen - * */ @@ -137,7 +135,7 @@ out: /* * filesel.c - * by JH + * by JH * * Copyright (C) Jaakko Heinonen */ @@ -318,7 +316,7 @@ filesel_sort_list() qsort((void *)lst, fdp, sizeof(struct filesel_list_item), filenamecmp ); - qsort((void *)lst + fdp * sizeof(struct filesel_list_item), + qsort((void *)(&lst[fdp]), FILESEL_LAST_ITEM - fdp + 1, sizeof(struct filesel_list_item), filenamecmp );