changed strncmp to memcmp so that null charakters are handlesd correct