ObjFW  Diff

Differences From Artifact [91e1854508]:

To Artifact [fa80b4b8f3]:


31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef HAVE_ASPRINTF
#import "asprintf.h"
#endif

@implementation OFMutableString
- (id)copy
{
	return [OFString stringWithCString: string];
}

- setToCString: (const char*)str
{
	size_t len;

	if (string != NULL)







|







31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef HAVE_ASPRINTF
#import "asprintf.h"
#endif

@implementation OFMutableString
- (id)copy
{
	return [[OFString alloc] initWithCString: string];
}

- setToCString: (const char*)str
{
	size_t len;

	if (string != NULL)