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

Commit ca1367cb authored by Pratibhasagar V's avatar Pratibhasagar V Committed by Subhash Jadavani
Browse files

mmc: sdio: Update the buffer copy to include the last char



During the copy the last character was getting truncated.
Update the buffer copy to include all the characters.

CRs-Fixed: 499579
Change-Id: I8e1df1d1f2294e85068aebcc876bef701e088b07
Signed-off-by: default avatarPratibhasagar V <pratibha@codeaurora.org>
parent 65dee488
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ static int cistpl_vers_1(struct mmc_card *card, struct sdio_func *func,

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