diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2023-12-14 19:50:12 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-12-14 20:04:32 +0000 |
commit | 9f733e5f3b8ae092e405d8bffa523a22155a7f6a (patch) | |
tree | 286eddb01419ff259636382239d69ff5e4a4c0e8 /libpamc | |
parent | 954234f0a477636eab751a6601d34bab1db41b0e (diff) | |
download | pam-9f733e5f3b8ae092e405d8bffa523a22155a7f6a.tar.gz pam-9f733e5f3b8ae092e405d8bffa523a22155a7f6a.tar.bz2 pam-9f733e5f3b8ae092e405d8bffa523a22155a7f6a.zip |
treewide: store strlen results in size_t
Very long strings could overflow the int data type. Make sure to use
the correct data type.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'libpamc')
-rw-r--r-- | libpamc/pamc_load.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpamc/pamc_load.c b/libpamc/pamc_load.c index f7365990..c1a39f5b 100644 --- a/libpamc/pamc_load.c +++ b/libpamc/pamc_load.c @@ -245,7 +245,7 @@ int pamc_disable(pamc_handle_t pch, const char *agent_id) int pamc_load(pamc_handle_t pch, const char *agent_id) { pamc_agent_t *agent; - int length; + size_t length; /* santity checking */ |