diff options
author | Pratibhasagar V <pratibha@codeaurora.org> | 2013-06-21 22:56:36 +0530 |
---|---|---|
committer | Subhash Jadavani <subhashj@codeaurora.org> | 2016-05-31 15:25:50 -0700 |
commit | ca1367cb223366e7540bea2d3e03d927ebfeac81 (patch) | |
tree | f02c0d3d8cd7b83d4f76e9d16075b21305ff7412 | |
parent | 65dee48836422bcaa97b84b6f30a96d45bfa15fe (diff) |
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: Pratibhasagar V <pratibha@codeaurora.org>
-rw-r--r-- | drivers/mmc/core/sdio_cis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/sdio_cis.c b/drivers/mmc/core/sdio_cis.c index 4a8508ec8ffd..8b4266a11ee0 100644 --- a/drivers/mmc/core/sdio_cis.c +++ b/drivers/mmc/core/sdio_cis.c @@ -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; } |