diff options
author | Harald Freudenberger <freude@linux.ibm.com> | 2020-03-12 11:19:55 +0100 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2020-03-23 13:41:54 +0100 |
commit | 40501c70e3f09e8018bf08457502a3a7b2d5a406 (patch) | |
tree | cad7b3f657806f5c4fe6b95d129ee55ce56560f1 /arch | |
parent | eb3e064b8dd12d0bc907dbbfc227bca9da252e6f (diff) | |
download | linux-stable-40501c70e3f09e8018bf08457502a3a7b2d5a406.tar.gz linux-stable-40501c70e3f09e8018bf08457502a3a7b2d5a406.tar.bz2 linux-stable-40501c70e3f09e8018bf08457502a3a7b2d5a406.zip |
s390/zcrypt: replace snprintf/sprintf with scnprintf
snprintf() may not always return the correct size of used bytes but
instead the length the resulting string would be if it would fit into
the buffer. So scnprintf() is the function to use when the real length
of the resulting string is needed.
Replace all occurrences of snprintf() with scnprintf() where the return
code is further processed. Also find and fix some occurrences where
sprintf() was used.
Suggested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions