=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/Attic/hist.c,v retrieving revision 1.1 retrieving revision 1.2 diff -c -r1.1 -r1.2 *** src/usr.bin/cvs/Attic/hist.c 2004/07/13 22:02:40 1.1 --- src/usr.bin/cvs/Attic/hist.c 2004/12/06 21:03:12 1.2 *************** *** 1,4 **** ! /* $OpenBSD: hist.c,v 1.1 2004/07/13 22:02:40 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: hist.c,v 1.2 2004/12/06 21:03:12 deraadt Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 187,194 **** if (ret == -1) { cvs_log(LP_ERRNO, "failed to buffer CVS history file"); return (-1); ! } ! else { histp->chf_bused = (size_t)ret; } --- 187,193 ---- if (ret == -1) { cvs_log(LP_ERRNO, "failed to buffer CVS history file"); return (-1); ! } else { histp->chf_bused = (size_t)ret; } *************** *** 222,229 **** */ histp->chf_off += (off_t)(sp - histp->chf_buf); break; ! } ! else if (ep == bep) { histp->chf_off += (off_t)histp->chf_bused; } *(ep++) = '\0'; --- 221,227 ---- */ histp->chf_off += (off_t)(sp - histp->chf_buf); break; ! } else if (ep == bep) { histp->chf_off += (off_t)histp->chf_bused; } *(ep++) = '\0';