From dc0fbe39fc67eee9594ceb887c75d809a65d1e3c Mon Sep 17 00:00:00 2001 From: skimo Date: Tue, 11 Sep 2001 20:01:03 +0000 Subject: [PATCH] db_last doesn't get the line directly into the line buffer, so copy it even in narrow char case --- common/db.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/common/db.c b/common/db.c index d994fe60..e50820ad 100644 --- a/common/db.c +++ b/common/db.c @@ -10,7 +10,7 @@ #include "config.h" #ifndef lint -static const char sccsid[] = "$Id: db.c,v 10.40 2001/08/29 12:25:13 skimo Exp $ (Berkeley) $Date: 2001/08/29 12:25:13 $"; +static const char sccsid[] = "$Id: db.c,v 10.41 2001/09/11 20:01:03 skimo Exp $ (Berkeley) $Date: 2001/09/11 20:01:03 $"; #endif /* not lint */ #include @@ -626,10 +626,8 @@ err1: FILE2INT(sp, data.data, data.size, wp, wlen); /* Fill the cache. */ - if (wp != data.data) { - BINC_GOTOW(sp, sp->c_lp, sp->c_blen, wlen); - MEMCPYW(sp->c_lp, wp, wlen); - } + BINC_GOTOW(sp, sp->c_lp, sp->c_blen, wlen); + MEMCPYW(sp->c_lp, wp, wlen); sp->c_lno = lno; sp->c_len = wlen; } -- 2.11.4.GIT