mmc: sdio: Update the argument for data copy
Incorrect arguments were passed to strlcpy() which causes Manufacturer information to be copied partially in the SDIO core layer code. Use appropriate arguments to copy the string value properly. CRs-Fixed: 434831 Change-Id: I4a70bfc8dff31b216a6097c08f824a1f1b002d5d Signed-off-by: Pratibhasagar V <pratibha@codeaurora.org>
This commit is contained in:
parent
8cd10b13a9
commit
6bfd64e43f
1 changed files with 1 additions and 1 deletions
|
@ -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, sizeof(string));
|
||||
strlcpy(string, buf, strlen(buf));
|
||||
string += strlen(string) + 1;
|
||||
buf += strlen(buf) + 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue