1 --- a/libopkg/pkg_parse.c
2 +++ b/libopkg/pkg_parse.c
10 #include "opkg_utils.h"
11 @@ -239,10 +240,16 @@ pkg_parse_line(void *ptr, const char *li
14 if ((mask & PFM_DESCRIPTION) && reading_description) {
15 - pkg->description = xrealloc(pkg->description,
16 - strlen(pkg->description)
17 - + 1 + strlen(line) + 1);
18 - strcat(pkg->description, "\n");
20 + pkg->description = xrealloc(pkg->description,
21 + strlen(pkg->description)
22 + + 1 + strlen(line) + 1);
23 + strcat(pkg->description, "\n");
25 + pkg->description = xrealloc(pkg->description,
26 + strlen(pkg->description)
27 + + 1 + strlen(line));
29 strcat(pkg->description, (line));
30 goto dont_reset_flags;
31 } else if ((mask & PFM_CONFFILES) && reading_conffiles) {