mirror of
https://github.com/mattiasgustavsson/libs.git
synced 2026-11-30 16:48:22 +01:00
Fix strpool_collate improperly modifying the strpool
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user