[asterisk-commits] file: branch group/media_formats r407187 - /team/group/media_formats/include/...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Feb 3 10:14:07 CST 2014
Author: file
Date: Mon Feb 3 10:14:03 2014
New Revision: 407187
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=407187
Log:
Fix up AST_VECTOR_REMOVE_ORDERED.
Modified:
team/group/media_formats/include/asterisk/vector.h
Modified: team/group/media_formats/include/asterisk/vector.h
URL: http://svnview.digium.com/svn/asterisk/team/group/media_formats/include/asterisk/vector.h?view=diff&rev=407187&r1=407186&r2=407187
==============================================================================
--- team/group/media_formats/include/asterisk/vector.h (original)
+++ team/group/media_formats/include/asterisk/vector.h Mon Feb 3 10:14:03 2014
@@ -183,8 +183,8 @@
size_t __move; \
ast_assert(__idx < (vec)->current); \
res = (vec)->elems[__idx]; \
- __move = ((vec)->current - (__idx) - 1) * sizeof(typeof((vec)->elems)); \
- memmove((vec)->elems[__idx], (vec)->elems[__idx + 1], __move); \
+ __move = ((vec)->current - (__idx) - 1) * sizeof(typeof((vec)->elems[0])); \
+ memmove(&(vec)->elems[__idx], &(vec)->elems[__idx + 1], __move); \
(vec)->current--; \
res; \
})
More information about the asterisk-commits
mailing list