=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/diff.c,v retrieving revision 1.56 retrieving revision 1.57 diff -c -r1.56 -r1.57 *** src/usr.bin/cvs/diff.c 2005/10/05 23:11:06 1.56 --- src/usr.bin/cvs/diff.c 2005/10/07 21:47:32 1.57 *************** *** 1,4 **** ! /* $OpenBSD: diff.c,v 1.56 2005/10/05 23:11:06 niallo Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: diff.c,v 1.57 2005/10/07 21:47:32 reyk Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. * All rights reserved. *************** *** 1353,1360 **** struct context_vec *tmp; ptrdiff_t offset = context_vec_ptr - context_vec_start; max_context <<= 1; ! if ((tmp = realloc(context_vec_start, ! max_context * sizeof(struct context_vec))) == NULL) { free(context_vec_start); context_vec_start = NULL; cvs_log(LP_ERRNO, --- 1353,1360 ---- struct context_vec *tmp; ptrdiff_t offset = context_vec_ptr - context_vec_start; max_context <<= 1; ! if ((tmp = realloc(context_vec_start, max_context * ! sizeof(struct context_vec))) == NULL) { free(context_vec_start); context_vec_start = NULL; cvs_log(LP_ERRNO, *************** *** 1592,1598 **** if (p != NULL) *p = '\0'; if (isalpha(buf[0]) || buf[0] == '_' || buf[0] == '$') { ! strlcpy(lastbuf, (const char *)buf, sizeof lastbuf); lastmatchline = pos; return lastbuf; } --- 1592,1599 ---- if (p != NULL) *p = '\0'; if (isalpha(buf[0]) || buf[0] == '_' || buf[0] == '$') { ! strlcpy(lastbuf, (const char *)buf, ! sizeof lastbuf); lastmatchline = pos; return lastbuf; }