diff options
author | Jan Kara <jack@suse.cz> | 2015-06-02 10:38:39 (GMT) |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-06-15 08:51:12 (GMT) |
commit | 8cb81811e924ff0214ce4e8344e2feb1549cf0ce (patch) | |
tree | 4bb8a52ff2121d335f893ad2d2cf4bfa89e47ece /Documentation/ko_KR/HOWTO | |
parent | 2e4aa2f2bdcf9b80bace0b0c460bd407d76f49d3 (diff) | |
download | linux-8cb81811e924ff0214ce4e8344e2feb1549cf0ce.tar.xz |
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>
Diffstat (limited to 'Documentation/ko_KR/HOWTO')
0 files changed, 0 insertions, 0 deletions