From 6bfd64e43fc7c890c052994f217000dccf45e7c3 Mon Sep 17 00:00:00 2001 From: Pratibhasagar V Date: Tue, 29 Jan 2013 10:32:49 +0530 Subject: [PATCH] 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 --- drivers/mmc/core/sdio_cis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/core/sdio_cis.c b/drivers/mmc/core/sdio_cis.c index 76a4508126dd..4a8508ec8ffd 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, sizeof(string)); + strlcpy(string, buf, strlen(buf)); string += strlen(string) + 1; buf += strlen(buf) + 1; }