From: Chen Gang Date: Fri, 25 Jan 2013 18:29:01 +0000 (-0800) Subject: ARM: SAMSUNG: using vsnprintf instead of vsprintf for the limit buffer length 256 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8baaa265c5e8e378cb60164f47e24bf296a6d685;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git ARM: SAMSUNG: using vsnprintf instead of vsprintf for the limit buffer length 256 the buff is 256 limited, so need use vsnprintf instead of vsprintf Signed-off-by: Chen Gang Cc: Ben Dooks Signed-off-by: Kukjin Kim --- diff --git a/arch/arm/plat-samsung/pm.c b/arch/arm/plat-samsung/pm.c index 15070284343..d896add68ad 100644 --- a/arch/arm/plat-samsung/pm.c +++ b/arch/arm/plat-samsung/pm.c @@ -51,7 +51,7 @@ void s3c_pm_dbg(const char *fmt, ...) char buff[256]; va_start(va, fmt); - vsprintf(buff, fmt, va); + vsnprintf(buff, sizeof(buff), fmt, va); va_end(va); printascii(buff);