=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/Attic/hist.c,v retrieving revision 1.9 retrieving revision 1.10 diff -c -r1.9 -r1.10 *** src/usr.bin/cvs/Attic/hist.c 2005/08/02 20:05:42 1.9 --- src/usr.bin/cvs/Attic/hist.c 2005/08/14 19:49:18 1.10 *************** *** 1,4 **** ! /* $OpenBSD: hist.c,v 1.9 2005/08/02 20:05:42 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: hist.c,v 1.10 2005/08/14 19:49:18 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 61,67 **** } memset(histp, 0, sizeof(*histp)); ! histp->chf_buf = (char *)malloc(CVS_HIST_BUFSIZE); if (histp->chf_buf == NULL) { cvs_log(LP_ERRNO, "failed to allocate CVS history parse buffer"); --- 61,67 ---- } memset(histp, 0, sizeof(*histp)); ! histp->chf_buf = (char *)malloc((size_t)CVS_HIST_BUFSIZE); if (histp->chf_buf == NULL) { cvs_log(LP_ERRNO, "failed to allocate CVS history parse buffer");