Show
Ignore:
Timestamp:
04/28/07 22:56:27 (2 years ago)
Author:
daboo
Message:

Fix pointer arithmetic errors.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Mulberry/trunk/Sources_Common/Mail/Filters/CBinHexFilter.cp

    r19 r31  
    883883                        ThrowIfOSErr_(::SetFPos(mFileStream->GetResourceForkRefNum(), fsFromStart, 0L)); 
    884884#elif __dest_os == __win32_os || __dest_os == __linux_os 
    885                 // In the beginingÉ 
     885                // In the begining 
    886886                mFileStream->SeekToBegin(); 
    887887#else 
     
    950950        // Copy type, creator, flags, data & resource fork lengths 
    951951        *((OSType*) p) = htonl('TEXT'); 
    952         p += sizeof(OSType*); 
     952        p += sizeof(OSType); 
    953953        *((OSType*) p) = htonl('ttxt'); 
    954         p += sizeof(OSType*); 
     954        p += sizeof(OSType); 
    955955        *((short*) p) = 0; 
    956         p += sizeof(short*); 
     956        p += sizeof(short); 
    957957        *((long*) p) = htonl(mFileStream->GetLength()); 
    958         p += sizeof(long*); 
     958        p += sizeof(long); 
    959959        *((long*) p) = 0; 
    960         p += sizeof(long*); 
     960        p += sizeof(long); 
    961961#endif 
    962962        // Update buffer length