Fix strpool_collate improperly modifying the strpool

This commit is contained in:
Ted Dobyns
2022-06-05 11:32:55 -07:00
committed by GitHub
parent 9475342278
commit a19bf9e922
+1 -1
View File
@@ -1222,7 +1222,7 @@ char* strpool_collate( strpool_t const* pool, int* count )
for( int i = 0; i < pool->entry_count; ++i )
{
int len = pool->entries[ i ].length + 1;
char* src = pool->entries[ i ].data += 2 * sizeof( STRPOOL_U32 );
char* src = pool->entries[ i ].data + 2 * sizeof( STRPOOL_U32 );
STRPOOL_MEMCPY( ptr, src, (size_t) len );
ptr += len;
}