fixed length issue with non-null terminated data