commit | 8cb81811e924ff0214ce4e8344e2feb1549cf0ce | [log] [tgz] |
---|---|---|
author | Jan Kara <jack@suse.cz> | Tue Jun 02 12:38:39 2015 +0200 |
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | Mon Jun 15 10:51:12 2015 +0200 |
tree | 4bb8a52ff2121d335f893ad2d2cf4bfa89e47ece | |
parent | 2e4aa2f2bdcf9b80bace0b0c460bd407d76f49d3 [diff] |
s390/keyboard: avoid off-by-one when using strnlen_user() strnlen_user() returns the length of the string including terminating 0. So avoid counting it again and unnecessarily reducing maximum string size by 1. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>