cifs: avoid extra calls to strlen() in cifs_get_spnego_key()
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 8 Aug 2025 14:52:21 +0000 (17:52 +0300)
committerSteve French <stfrench@microsoft.com>
Tue, 12 Aug 2025 04:20:26 +0000 (23:20 -0500)
commitd7f1affc556e07208453224a025bd67583671ae2
tree30c62a0ce1008e349fedbbdec09e741322c1fb43
parentb63335fb3d32579c5ff0b7038b9cc23688fff528
cifs: avoid extra calls to strlen() in cifs_get_spnego_key()

Since 'snprintf()' returns the number of characters emitted, an
output position may be advanced with this return value rather
than using an explicit calls to 'strlen()'. Compile tested only.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifs_spnego.c