]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
serial: mfd: snprintf() returns largish values
authorDan Carpenter <error27@gmail.com>
Thu, 12 Aug 2010 07:50:09 +0000 (09:50 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:19:58 +0000 (10:19 -0700)
commita95898114059e1038f3f7ee9bd2e43aefa62709a
treea1d559d638fdfe2ee668628827c5a75927362ac8
parentde838a93cbf35671f890360b886a5c2a8a5d1aa4
serial: mfd: snprintf() returns largish values

snprintf() returns the number of bytes which would have been written so
it can be larger than the size of the buffer.  In this case it's fine,
but people copy and paste this code so I've fixed it.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/mfd.c