Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72f16cf8 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mmc: core: Replacing sprintf() with snprintf()"

parents 40895552 7a5da6b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
static ssize_t mmc_##name##_show (struct device *dev, struct device_attribute *attr, char *buf)	\
{										\
	struct mmc_card *card = mmc_dev_to_card(dev);				\
	return sprintf(buf, fmt, args);						\
	return snprintf(buf, PAGE_SIZE, fmt, args);			\
}										\
static DEVICE_ATTR(name, S_IRUGO, mmc_##name##_show, NULL)