From e697cf954b6b63d0568c621c5872f7ad6ce839c5 Mon Sep 17 00:00:00 2001 From: etisserant Date: Thu, 20 Mar 2008 14:44:35 +0000 Subject: [PATCH] Fixed not so ANSI code in objaccess.c --- src/objacces.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/objacces.c b/src/objacces.c index cb8bce8..7511f00 100644 --- a/src/objacces.c +++ b/src/objacces.c @@ -169,8 +169,9 @@ UNS32 _getODentry( CO_Data* d, 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; -- 2.39.2