Skip to content

Commit

Permalink
ARM: SAMSUNG: using vsnprintf instead of vsprintf for the limit buffe…
Browse files Browse the repository at this point in the history
…r 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>
  • Loading branch information
Chen Gang authored and Kukjin Kim committed Jan 31, 2013
1 parent 29fb58d commit 8baaa26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/plat-samsung/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8baaa26

Please sign in to comment.