php4 updated to 4.4.1 - critical security update, all 4.[34] users
[pkgsrcv2.git] / news / nn / patches / patch-af
1 $NetBSD$
2
3 --- articles.c.orig     Wed Oct  3 03:01:08 2001
4 +++ articles.c  Sun Jul  7 21:33:09 2002
5 @@ -264,7 +264,7 @@
6      int dbstatus;
7  #else /* NOV */
8      FILE *data;
9 -    off_t data_offset, data_size;
10 +    long data_offset, data_size;
11  #endif /* NOV */
12      cross_post_number cross_post;
13      attr_type leave_attr;
14 @@ -286,7 +286,7 @@
15      data = open_data_file(gh, 'd', OPEN_READ);
16      if (data == NULL) return -10;
17  
18 -    if ((data_offset = get_data_offset(gh, first_article)) == (off_t)(-1))
19 +    if ((data_offset = get_data_offset(gh, first_article)) == (long)(-1))
20         return -11;
21  #endif /* NOV */
22  
23 @@ -355,7 +355,7 @@
24         }
25         data_offset += data_size;
26  #endif /* NOV */
27 -       if (db_hdr.dh_lpos == (off_t)0)
28 +       if (db_hdr.dh_lpos == (long)0)
29             continue;   /* article not accessible */
30  
31         if (db_hdr.dh_number > gh->last_db_article
32 @@ -421,7 +421,7 @@
33         }
34  
35         ah->hpos = db_hdr.dh_hpos;
36 -       ah->fpos = ah->hpos + (off_t)(db_hdr.dh_fpos);
37 +       ah->fpos = ah->hpos + (long)(db_hdr.dh_fpos);
38         ah->lpos = db_hdr.dh_lpos;
39  
40         ah->attr = test_article(ah);