regulator: core: replace sprintf with scnprintf
authorStefan Wahren <stefan.wahren@i2se.com>
Wed, 10 Jun 2015 06:13:15 +0000 (06:13 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 10 Jun 2015 10:09:30 +0000 (11:09 +0100)
commit5751a99fe971262f3701922d116bcde7e9045b17
tree9c6ee5845dda82c7eafbd84148014dde44cc89a0
parent96dc589624954fea915c1cee90e0987ff9631386
regulator: core: replace sprintf with scnprintf

In order to avoid potential overflows in print_constraints we
better replace sprintf() with scnprintf().

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c