Show
Ignore:
Timestamp:
09/15/07 20:20:13 (1 year ago)
Author:
daboo
Message:

Fix some bad pointer arithmetic errors. This fixes crashes during drag and drop.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Mulberry/trunk/Linux/Sources/Application/Calendar/Calendar_View/Calendar_Store_View/CCalendarStoreTable.cp

    r21 r107  
    891891                if (data) 
    892892                { 
    893                         int* i = reinterpret_cast<int*>(data); 
    894                         *i = count; 
    895                         i++; 
    896                         void** vdata = reinterpret_cast<void**>(i); 
     893                        unsigned char* ptr = data; 
     894                        *((int*) ptr) = count; 
     895                        ptr += sizeof(int); 
     896                        void** vdata = reinterpret_cast<void**>(ptr); 
    897897                        for(ulvector::const_iterator iter = rows.begin(); iter != rows.end(); iter++) 
    898898                        {