php4 updated to 4.4.1 - critical security update, all 4.[34] users
[pkgsrcv2.git] / news / nn / patches / patch-ah
1 $NetBSD$
2
3 --- collect.c.orig      Wed Aug 14 23:08:39 1996
4 +++ collect.c   Sun Aug 22 18:21:47 1999
5 @@ -45,7 +45,7 @@
6      article_number last;
7      register FILE *arc;
8      register int c;
9 -    off_t start;
10 +    long start;
11      static char *arc_header = "Archived-Last: ";
12      /* Header format: Archived-Last: 88888888 group.name */
13      /* Fixed constants length == 15 and offset == 24 are used below */
14 @@ -83,9 +83,9 @@
15  
16      fseek(arc, start, 0);
17      fprintf(arc, "%s%8ld %s\n", arc_header, (long)num, gh->group_name);
18 -    fseek(arc, (off_t)0, 2);
19 +    fseek(arc, (long)0, 2);
20  
21 -    fseek(f, (off_t)0, 0);
22 +    fseek(f, (long)0, 0);
23      while ((c = getc(f)) != EOF) putc(c, arc);
24      putc(NL, arc);
25      fclose(arc);
26 @@ -177,8 +177,8 @@
27      /* get article header */
28  
29      art_hdr.a_number = art_num;
30 -    art_hdr.hpos = (off_t)0;
31 -    art_hdr.lpos = (off_t)0;
32 +    art_hdr.hpos = (long)0;
33 +    art_hdr.lpos = (long)0;
34      art_hdr.flag = 0;
35  
36      mode = FILL_NEWS_HEADER | FILL_OFFSETS | SKIP_HEADER;
37 @@ -391,7 +391,7 @@
38         }
39  #endif
40  #ifndef RENUMBER_DANGER
41 -       if (temp == 0 && gh->data_write_offset == (off_t)0) {
42 +       if (temp == 0 && gh->data_write_offset == (long)0) {
43             gh->first_db_article = gh->last_db_article + 1;
44             continue;
45         }