rem: logPtr->extheaders = ns_calloc(i + 1, sizeof *logPtr->extheaders);
add: logPtr->extheaders = ns_calloc((size_t)(i + 1), sizeof *logPtr->extheaders);
context: LogConfigExtHeaders(Log *logPtr, char *path){    char *config = Ns_ConfigGetValue(path, "extendedheaders");    char *p;    int   i;    if (config == NULL) {        logPtr->extheaders = ns_calloc(1, sizeof *logPtr->extheaders);        logPtr->extheaders[0] = NULL;	return;    }    config = ns_strdup(config);    /* Figure out how many extended headers there are. */    for (i = 1, p = config; *p; p++) {	if (*p == ',') {	    i++;	}    }    /* Initialize the extended header pointers. */    logPtr->extheaders = ns_calloc(i + 1, sizeof *logPtr->extheaders);    logPtr->extheaders[0] = config;    for (i = 1, p = config; *p; p++) {	if (*p == ',') {	    *p = '\000';	    logPtr->extheaders[i++] = p + 1;	}    }    logPtr->extheaders[i] = NULL;}