blob: 74f04c71049bab7bdd78a7652ca2c982aa0a5a95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-ai,v 1.1 2006/12/12 03:37:30 dogcow Exp $
--- ../common/db.c.orig 2001-08-19 07:52:00.000000000 +1000
+++ ../common/db.c 2006-12-03 15:21:22.000000000 +1000
@@ -94,6 +94,7 @@
CHAR_T *wp;
size_t wlen;
size_t nlen;
+ char *c_lp;
/*
* The underlying recno stuff handles zero by returning NULL, but
@@ -164,7 +165,9 @@
nlen = 1024;
retry:
/* data.size contains length in bytes */
- BINC_GOTO(sp, (char *)ep->c_lp, ep->c_blen, nlen);
+ c_lp = (char *) ep->c_lp;
+ BINC_GOTO(sp, c_lp, ep->c_blen, nlen);
+ ep->c_lp = (CHAR_T *) c_lp;
/* Get the line from the underlying database. */
memset(&key, 0, sizeof(key));
|