src/objacces.c
changeset 648 dd0a627142c6
parent 629 b9274b595650
child 666 9febdd6fdc71
equal deleted inserted replaced
647:8203ce2b9752 648:dd0a627142c6
   151         UNS8 *ptr_dest = (UNS8*)pDestData;
   151         UNS8 *ptr_dest = (UNS8*)pDestData;
   152         while( *ptr && ptr < ptr_end){
   152         while( *ptr && ptr < ptr_end){
   153             *(ptr_dest++) = *(ptr++);
   153             *(ptr_dest++) = *(ptr++);
   154         } 
   154         } 
   155          
   155          
   156         *pExpectedSize = ptr - ptr_start;
   156         *pExpectedSize = (UNS32) (ptr - ptr_start);
   157         /* terminate string if not maximum length */
   157         /* terminate string if not maximum length */
   158         if (*pExpectedSize < szData) 
   158         if (*pExpectedSize < szData) 
   159             *(ptr) = 0; 
   159             *(ptr) = 0; 
   160     }
   160     }
   161 
   161