summaryrefslogtreecommitdiff
path: root/arch/arm/plat-samsung
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-01-25 10:29:01 -0800
committerKukjin Kim <kgene.kim@samsung.com>2013-01-30 22:28:05 -0800
commit8baaa265c5e8e378cb60164f47e24bf296a6d685 (patch)
treed4db033fbb1a02a5f58c7c9366b1177e9272e573 /arch/arm/plat-samsung
parent29fb58dc3cf2d4ada1a32eb9b000c18871d9b691 (diff)
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 <gang.chen@asianux.com> Cc: Ben Dooks <ben@fluff.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung')
-rw-r--r--arch/arm/plat-samsung/pm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-samsung/pm.c b/arch/arm/plat-samsung/pm.c
index 15070284343e..d896add68ad3 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);