[pan2: 15/68] Fix bug in multipart article mids.



commit 4a41e96f533c7203fbb973faa7bdd1c92b684ce2
Author: K. Haley <haleykd users sf net>
Date:   Thu Jan 7 00:10:07 2010 -0700

    Fix bug in multipart article mids.
    
    The offset type for squashed mids was to small resulting in
    an overflow.  The problem multipart mids only had the ending
    in common.

 pan/data/parts.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pan/data/parts.h b/pan/data/parts.h
index b3f34fc..6dc5e7b 100644
--- a/pan/data/parts.h
+++ b/pan/data/parts.h
@@ -47,7 +47,7 @@ namespace pan
   {
     public:
       typedef uint16_t number_t;
-      typedef uint16_t mid_offset_t;
+      typedef uint32_t mid_offset_t;
       typedef uint32_t bytes_t;
 
     private:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]