mmc: Fixing few warning messages.

CRs-Fixed: 313388
Change-Id: Ibf8ec6bc9eb7adff9bb6ac6af2a2f1af33a76bb8
Signed-off-by: Pratibhasagar V <pratibha@codeaurora.org>
This commit is contained in:
Pratibhasagar V 2011-10-18 14:57:27 +05:30 committed by Stephen Boyd
parent df107d8f28
commit deadb09a14

View file

@ -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;
strcpy(string, buf);
strlcpy(string, buf, sizeof(string));
string += strlen(string) + 1;
buf += strlen(buf) + 1;
}