[BACK]Return to apropos_db.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/Attic/apropos_db.c between version 1.32.2.5 and 1.32.2.6

version 1.32.2.5, 2014/03/23 12:04:54 version 1.32.2.6, 2014/04/23 21:31:38
Line 555  single_search(struct rectree *tree, const struct opts 
Line 555  single_search(struct rectree *tree, const struct opts 
                         if (strcasecmp(opts->arch, r.arch))                          if (strcasecmp(opts->arch, r.arch))
                                 continue;                                  continue;
   
                 tree->node = rs = mandoc_realloc                  tree->node = rs = mandoc_reallocarray(rs,
                         (rs, (tree->len + 1) * sizeof(struct res));                      tree->len + 1, sizeof(struct res));
   
                 memcpy(&rs[tree->len], &r, sizeof(struct res));                  memcpy(&rs[tree->len], &r, sizeof(struct res));
                 memset(&r, 0, sizeof(struct res));                  memset(&r, 0, sizeof(struct res));

Legend:
Removed from v.1.32.2.5  
changed lines
  Added in v.1.32.2.6

CVSweb