From a19bf9e9225f0f8ca635f6cf128f7db06c422766 Mon Sep 17 00:00:00 2001 From: Ted Dobyns Date: Sun, 5 Jun 2022 11:32:55 -0700 Subject: [PATCH] Fix strpool_collate improperly modifying the strpool --- strpool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strpool.h b/strpool.h index e30761d..49892e8 100644 --- a/strpool.h +++ b/strpool.h @@ -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; }