diff src/database.c @ 247:7a830ce3211e noffle

[svn] *** empty log message ***
author mirkol
date Tue, 26 Mar 2002 17:52:01 +0000
parents 4e69e9b722ae
children 52f467c7213b
line wrap: on
line diff
--- a/src/database.c	Fri Mar 15 15:25:46 2002 +0000
+++ b/src/database.c	Tue Mar 26 17:52:01 2002 +0000
@@ -1,7 +1,7 @@
 /*
   database.c
 
-  $Id: database.c 375 2002-03-15 10:50:33Z bears $
+  $Id: database.c 379 2002-03-26 17:52:01Z mirkol $
 
   Uses GNU gdbm library. Using Berkeley db (included in libc6) was
   cumbersome. It is based on Berkeley db 1.85, which has severe bugs
@@ -147,23 +147,23 @@
         Log_err( "Entry in database '%s' is corrupt (lastAccess)", msgId );
         return FALSE;
     }
-    p = Utl_getLn( db.subj, p );
-    p = Utl_getLn( db.from, p );
-    p = Utl_getLn( db.date, p );
-    p = Utl_getLn( db.ref, p );
-    p = Utl_getLn( db.xref, p );
+    p = Utl_getHeaderLn( db.subj, p );
+    p = Utl_getHeaderLn( db.from, p );
+    p = Utl_getHeaderLn( db.date, p );
+    p = Utl_getHeaderLn( db.ref, p );
+    p = Utl_getHeaderLn( db.xref, p );
     if ( ! p )
     {
         Log_err( "Entry in database '%s' is corrupt (overview)", msgId );
         return FALSE;
     }
-    p = Utl_getLn( t, p );
+    p = Utl_getHeaderLn( t, p );
     if ( ! p || sscanf( t, "%u", &db.bytes ) != 1 )
     {
         Log_err( "Entry in database '%s' is corrupt (bytes)", msgId );
         return FALSE;
     }
-    p = Utl_getLn( t, p );
+    p = Utl_getHeaderLn( t, p );
     if ( ! p || sscanf( t, "%u", &db.lines ) != 1 )
     {
         Log_err( "Entry in database '%s' is corrupt (lines)", msgId );