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

Commit 834bc3a1 authored by Georg Veichtlbauer's avatar Georg Veichtlbauer
Browse files

Revert "mmc: sdio: Fix strlcpy usage"

This reverts commit e69da001.

Reason for revert: Changing to memcpy gets rid of the warning, but not
of the problem.
Proper fix in I515a4d043639109298008f95a25d8ed70417bdd8.

Change-Id: I4a7341c7bbda0842706134aafb7ce858a5af053e
parent 70a3b98a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ static int cistpl_vers_1(struct mmc_card *card, struct sdio_func *func,

	for (i = 0; i < nr_strings; i++) {
		buffer[i] = string;
		memcpy(string, buf, strlen(buf) + 1);
		strlcpy(string, buf, strlen(buf) + 1);
		string += strlen(string) + 1;
		buf += strlen(buf) + 1;
	}