Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14a036d2 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by Sam Ravnborg
Browse files

kbuild: replace use of strlcpy with a dedicated implmentation in unifdef



Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 01f1c879
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -450,7 +450,14 @@ ignoreon(void)
static void
keywordedit(const char *replacement)
{
	strlcpy(keyword, replacement, tline + sizeof(tline) - keyword);
	size_t size = tline + sizeof(tline) - keyword;
	char *dst = keyword;
	const char *src = replacement;
	if (size != 0) {
		while ((--size != 0) && (*src != '\0'))
			*dst++ = *src++;
		*dst = '\0';
	}
	print();
}
static void