Staging: most: fix snprintf() is printing too much
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 28 Jul 2015 15:16:09 +0000 (17:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2015 20:43:15 +0000 (13:43 -0700)
commit7ac5c9f0a0228fff35c0ea85008ff642b07e6db3
tree9696ecfb40c7e4d8ef3167d5966446ce92a41219
parentadd04a9854106a724b9fbf8bc9925781e5b0059e
Staging: most: fix snprintf() is printing too much

This patch prevents snprintf from exceeding a given buffer size.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/mostcore/core.c