Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=aced64645c6961a8fc081d4fa669498f0322fa46
commit aced64645c6961a8fc081d4fa669498f0322fa46 Author: Michel Hermier <[email protected]> Date: Fri Oct 17 16:38:11 2014 +0200 libpacman: Fix cut&paste typo. diff --git a/src/pacman-g2/util.c b/src/pacman-g2/util.c index c2fe231..2f05e91 100644 --- a/src/pacman-g2/util.c +++ b/src/pacman-g2/util.c @@ -93,7 +93,7 @@ char *buildstring(FStringList *strlist) char *str; int size = 1; - for(FPtrListIterator *lp = f_ptrlist_first(strlist), *end = f_ptrlist_first(strlist); lp != end; lp = f_ptrlistitem_next(lp)) { + for(FPtrListIterator *lp = f_ptrlist_first(strlist), *end = f_ptrlist_end(strlist); lp != end; lp = f_ptrlistitem_next(lp)) { size += strlen(list_data(lp)) + 1; } str = (char *)malloc(size); @@ -101,7 +101,7 @@ char *buildstring(FStringList *strlist) ERR(NL, _("failed to allocated %d bytes\n"), size); } str[0] = '\0'; - for(FPtrListIterator *lp = f_ptrlist_first(strlist), *end = f_ptrlist_first(strlist); lp != end; lp = f_ptrlistitem_next(lp)) { + for(FPtrListIterator *lp = f_ptrlist_first(strlist), *end = f_ptrlist_end(strlist); lp != end; lp = f_ptrlistitem_next(lp)) { strcat(str, list_data(lp)); strcat(str, " "); } _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
