Fixed not so ANSI code in objaccess.c
authoretisserant
Thu, 20 Mar 2008 15:44:35 +0100
changeset 429 7cba38279f98
parent 428 25b06f59f123
child 430 61a24423589c
Fixed not so ANSI code in objaccess.c
src/objacces.c
--- a/src/objacces.c	Thu Mar 20 15:28:11 2008 +0100
+++ b/src/objacces.c	Thu Mar 20 15:44:35 2008 +0100
@@ -169,8 +169,9 @@
         UNS8 *ptr = (UNS8*)ptrTable->pSubindex[bSubindex].pObject;
         UNS8 *ptr_start = ptr;
         UNS8 *ptr_end = ptr + *pExpectedSize; /* *pExpectedSize IS < szData */ 
+        UNS8 *ptr_dest = (UNS8*)pDestData;
         while( *ptr && ptr < ptr_end){
-            *((UNS8*)pDestData++) = *(ptr++);
+            *(ptr_dest++) = *(ptr++);
         } 
          
         *pExpectedSize = ptr - ptr_start;