--- a/src/data_buffer.h Mon Jan 13 00:15:38 2014 +0200 +++ b/src/data_buffer.h Mon Jan 13 23:44:15 2014 +0200 @@ -1,5 +1,5 @@ /* - Copyright (c) 2013-2014, Santeri Piippo + Copyright (c) 2012-2014, Santeri Piippo All rights reserved. Redistribution and use in source and binary forms, with or without @@ -98,7 +98,7 @@ if (writesize >= allocsize) // should NEVER happen because resizing is done above error ("DataBuffer: written size exceeds allocated size!\n"); - buffer[writesize] = uni.b[x]; + buffer[writesize] = uni.as_bytes[x]; writesize++; } }