Mercurial > libpst
comparison src/readpst.c @ 146:0695de3b5a98 stable-0-6-29
fix for 64bit on Fedora 11
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 24 Feb 2009 15:32:56 -0800 |
parents | fdc58ad2c758 |
children | 06aa84023b48 |
comparison
equal
deleted
inserted
replaced
145:2da75cc45883 | 146:0695de3b5a98 |
---|---|
750 pst_desc_ll d_ptr; | 750 pst_desc_ll d_ptr; |
751 d_ptr.id = ptr->id; | 751 d_ptr.id = ptr->id; |
752 d_ptr.parent_id = 0; | 752 d_ptr.parent_id = 0; |
753 d_ptr.list_index = NULL; | 753 d_ptr.list_index = NULL; |
754 d_ptr.desc = ptr; | 754 d_ptr.desc = ptr; |
755 d_ptr.no_child - 0; | 755 d_ptr.no_child = 0; |
756 d_ptr.prev = NULL; | 756 d_ptr.prev = NULL; |
757 d_ptr.next = NULL; | 757 d_ptr.next = NULL; |
758 d_ptr.parent = NULL; | 758 d_ptr.parent = NULL; |
759 d_ptr.child = NULL; | 759 d_ptr.child = NULL; |
760 d_ptr.child_tail = NULL; | 760 d_ptr.child_tail = NULL; |
882 } | 882 } |
883 | 883 |
884 | 884 |
885 void header_strip_field(char *header, char *field) | 885 void header_strip_field(char *header, char *field) |
886 { | 886 { |
887 char *e; | |
888 char *t = header_get_field(header, field); | 887 char *t = header_get_field(header, field); |
889 if (t) { | 888 if (t) { |
890 char *e = header_end_field(t); | 889 char *e = header_end_field(t); |
891 if (e) { | 890 if (e) { |
892 if (t == header) e++; // if *t is not \n, we don't want to keep the \n at *e either. | 891 if (t == header) e++; // if *t is not \n, we don't want to keep the \n at *e either. |
957 { | 956 { |
958 DEBUG_ENT("find_rfc822_headers"); | 957 DEBUG_ENT("find_rfc822_headers"); |
959 char *headers = *extra_mime_headers; | 958 char *headers = *extra_mime_headers; |
960 if (headers) { | 959 if (headers) { |
961 char *temp, *t; | 960 char *temp, *t; |
962 while (temp = strstr(headers, "\n\n")) { | 961 while ((temp = strstr(headers, "\n\n"))) { |
963 temp[1] = '\0'; | 962 temp[1] = '\0'; |
964 t = header_get_field(headers, "\nContent-Type: "); | 963 t = header_get_field(headers, "\nContent-Type: "); |
965 if (t) { | 964 if (t) { |
966 t++; | 965 t++; |
967 DEBUG_EMAIL(("found content type header\n")); | 966 DEBUG_EMAIL(("found content type header\n")); |