ObjIRC  Diff

Differences From Artifact [61a450e638]:

To Artifact [d20841002e]:


46
47
48
49
50
51
52
53
54
55
56

57
58
59
60
61
62
63
46
47
48
49
50
51
52




53
54
55
56
57
58
59
60







-
-
-
-
+







	char *tmp2 = NULL;

	self = [super init];

	@try {
		char *tmp;

		if ((tmp2 = strdup([string UTF8String])) == NULL)
			@throw [OFOutOfMemoryException
			     exceptionWithRequestedSize:
			     [string UTF8StringLength]];
		tmp2 = OFStrDup(string.UTF8String);

		if ((tmp = strchr(tmp2, '@')) == NULL)
			@throw [OFInvalidFormatException exception];

		*tmp = '\0';
		_hostname = [[OFString alloc] initWithUTF8String: tmp + 1];