From ca1367cb223366e7540bea2d3e03d927ebfeac81 Mon Sep 17 00:00:00 2001 From: Pratibhasagar V Date: Fri, 21 Jun 2013 22:56:36 +0530 Subject: 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 --- drivers/mmc/core/sdio_cis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') 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; } -- cgit v1.2.3