diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-11-20 23:17:57 +0100 |
|---|---|---|
| committer | Tyler Hicks <code@tyhicks.com> | 2025-12-23 15:23:23 -0600 |
| commit | 6ba673331340dabcff4a3ca91cc67761ba74c518 (patch) | |
| tree | d45691bcae5eb518953213fe832101df988eca45 /fs/ecryptfs/debug.c | |
| parent | e8fb5ec8934312df0a8f28b5514733acdf7ba722 (diff) | |
ecryptfs: Drop redundant NUL terminations after calling ecryptfs_to_hex
ecryptfs_to_hex() already NUL-terminates the destination buffers. Drop
the manual NUL terminations.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Tyler Hicks <code@tyhicks.com>
Diffstat (limited to 'fs/ecryptfs/debug.c')
| -rw-r--r-- | fs/ecryptfs/debug.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ecryptfs/debug.c b/fs/ecryptfs/debug.c index cf6d0e8e25a1..c185a8cb5fe2 100644 --- a/fs/ecryptfs/debug.c +++ b/fs/ecryptfs/debug.c @@ -28,7 +28,6 @@ void ecryptfs_dump_auth_tok(struct ecryptfs_auth_tok *auth_tok) ecryptfs_printk(KERN_DEBUG, " * passphrase type\n"); ecryptfs_to_hex(salt, auth_tok->token.password.salt, ECRYPTFS_SALT_SIZE); - salt[ECRYPTFS_SALT_SIZE * 2] = '\0'; ecryptfs_printk(KERN_DEBUG, " * salt = [%s]\n", salt); if (auth_tok->token.password.flags & ECRYPTFS_PERSISTENT_PASSWORD) { |
