diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2025-06-26 19:07:50 +0300 |
---|---|---|
committer | Mikulas Patocka <mpatocka@redhat.com> | 2025-06-27 13:07:17 +0200 |
commit | ebbd17695e9e1f4c3cdb36149c8b8f38b585e14d (patch) | |
tree | 03f7948a859e86c37212a777ad18f31100a22c79 /lib/crypto/mpi/mpi-sub-ui.c | |
parent | 548d88f74ed49c3c9dbd68550b7b335c2afa6413 (diff) |
dm: ima: avoid extra calls to strlen()
Since 'scnprintf()' returns the number of characters emitted (not
including the trailing '\0'), use that return value instead of the
subsequent calls to 'strlen()' where appropriate. Compile tested only.
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions