=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/mandocdb.c,v retrieving revision 1.100 retrieving revision 1.101 diff -c -r1.100 -r1.101 *** src/usr.bin/mandoc/mandocdb.c 2014/04/23 19:08:52 1.100 --- src/usr.bin/mandoc/mandocdb.c 2014/04/23 21:06:33 1.101 *************** *** 1,4 **** ! /* $Id: mandocdb.c,v 1.100 2014/04/23 19:08:52 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze --- 1,4 ---- ! /* $Id: mandocdb.c,v 1.101 2014/04/23 21:06:33 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze *************** *** 463,470 **** * manpath_parse() wants to do it. */ if (argc > 0) { ! dirs.paths = mandoc_calloc(argc, ! sizeof(char *)); dirs.sz = (size_t)argc; for (i = 0; i < argc; i++) dirs.paths[i] = mandoc_strdup(argv[i]); --- 463,470 ---- * manpath_parse() wants to do it. */ if (argc > 0) { ! dirs.paths = mandoc_reallocarray(NULL, ! argc, sizeof(char *)); dirs.sz = (size_t)argc; for (i = 0; i < argc; i++) dirs.paths[i] = mandoc_strdup(argv[i]); *************** *** 1776,1782 **** s->mask |= v; return; } else if (NULL == s) { ! s = mandoc_calloc(sizeof(struct str) + sz + 1, 1); memcpy(s->key, cp, sz); ohash_insert(htab, slot, s); } --- 1776,1782 ---- s->mask |= v; return; } else if (NULL == s) { ! s = mandoc_calloc(1, sizeof(struct str) + sz + 1); memcpy(s->key, cp, sz); ohash_insert(htab, slot, s); } *************** *** 2304,2310 **** hash_halloc(size_t sz, void *arg) { ! return(mandoc_calloc(sz, 1)); } static void * --- 2304,2310 ---- hash_halloc(size_t sz, void *arg) { ! return(mandoc_calloc(1, sz)); } static void *