ObjFW  Check-in [bbf92b046a]

Overview
Comment:runtime: Fix cut & paste mistake
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: bbf92b046ad84ad5ffa89ec213d40c8ec8c1b031563946d40f50bcb7b4fe69d4
User & Date: js on 2021-04-25 21:20:03
Other Links: manifest | tags
Context
2021-04-28
20:56
OF{LHA,ZIP}Archive: Make mode enum private check-in: fc4697adbf user: js tags: trunk
2021-04-25
21:20
runtime: Fix cut & paste mistake check-in: bbf92b046a user: js tags: trunk
19:58
Last round of renames (hopefully) check-in: 6ae98c1dcf user: js tags: trunk
Changes

Modified src/runtime/misc.m from [3f2babee79] to [60d087e2ac].

128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147

	abort();
#endif

	OF_UNREACHABLE
}

static char *
objc_strdup(const char *string)
{
	char *copy;
	size_t length = strlen(string);

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

	memcpy(copy, string, length + 1);

	return copy;
}







|












128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147

	abort();
#endif

	OF_UNREACHABLE
}

char *
objc_strdup(const char *string)
{
	char *copy;
	size_t length = strlen(string);

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

	memcpy(copy, string, length + 1);

	return copy;
}