diff --git a/components/drivers/sdio/dev_sdhci.c b/components/drivers/sdio/dev_sdhci.c index c8fd0646fa2..a07f64a615f 100755 --- a/components/drivers/sdio/dev_sdhci.c +++ b/components/drivers/sdio/dev_sdhci.c @@ -3535,7 +3535,7 @@ static void sdhci_reinit(struct rt_sdhci_host *host) int rt_sdhci_init_host(struct rt_sdhci_host *host) { int ret, len; - char dev_name[32]; + char dev_name[RT_NAME_MAX]; struct rt_mmc_host *mmc = host->mmc; len = sdio_host_set_name(&mmc->rthost, dev_name);