ObjFW  Diff

Differences From Artifact [54a3501810]:

To Artifact [63bde433c3]:


596
597
598
599
600
601
602









	if ((copy = (char*)malloc(length + 1)) == NULL)
		return NULL;

	memcpy(copy, string, length + 1);

	return copy;
}
















>
>
>
>
>
>
>
>
>
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
	if ((copy = (char*)malloc(length + 1)) == NULL)
		return NULL;

	memcpy(copy, string, length + 1);

	return copy;
}

static OF_INLINE void
of_explicit_memset(void *buffer_, int character, size_t length)
{
	volatile unsigned char *buffer = buffer_;

	while (buffer < (unsigned char*)buffer_ + length)
		*buffer++ = character;
}