From b39251c6b226b3d35e3607a3856c10102634ba65 Mon Sep 17 00:00:00 2001 From: aymeric Date: Sun, 30 Sep 2001 21:12:00 +0000 Subject: [PATCH] indx_t can be a 16 bit type, and is thus not suited to hold a difference between two pointers in the general case. Replace it by ptrdiff_t. -> recno databases can now handle records of more than 64KB -> nvi can now handle files with lines bigger than 64KB Problem and fix suggested by FreeBSD PR#9350 --- lib/libc/db/recno/rec_get.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libc/db/recno/rec_get.c b/lib/libc/db/recno/rec_get.c index 3ea720b8933a..5ca46f760336 100644 --- a/lib/libc/db/recno/rec_get.c +++ b/lib/libc/db/recno/rec_get.c @@ -1,4 +1,4 @@ -/* $NetBSD: rec_get.c,v 1.10 1997/07/21 14:06:44 jtc Exp $ */ +/* $NetBSD: rec_get.c,v 1.11 2001/09/30 21:12:00 aymeric Exp $ */ /*- * Copyright (c) 1990, 1993, 1994 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)rec_get.c 8.9 (Berkeley) 8/18/94"; #else -__RCSID("$NetBSD: rec_get.c,v 1.10 1997/07/21 14:06:44 jtc Exp $"); +__RCSID("$NetBSD: rec_get.c,v 1.11 2001/09/30 21:12:00 aymeric Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -189,7 +189,7 @@ __rec_vpipe(t, top) { DBT data; recno_t nrec; - indx_t len; + ptrdiff_t len; size_t sz; int bval, ch; u_char *p;