diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2023-12-12 16:43:28 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-12-12 20:05:08 +0000 |
commit | eec4358a49dc0d6d699532965f453f0da240227e (patch) | |
tree | 409d45422f7634e4772cc695b312731e9b311db5 /modules/pam_xauth/pam_xauth.c | |
parent | 525a62a643f0bf18b12643dd4e8a3dc3d4c63fcd (diff) | |
download | pam-eec4358a49dc0d6d699532965f453f0da240227e.tar.gz pam-eec4358a49dc0d6d699532965f453f0da240227e.tar.bz2 pam-eec4358a49dc0d6d699532965f453f0da240227e.zip |
pam_limits: avoid sscanf in parse_config_file
Even though sscanf is easy to use for scanning strings, it has the
drawback that the required memory has to be allocated beforehand.
Since variable "line" is not accessed anymore after sscanf, it is
easier to point into the memory assigned to "line". The function
strtok_r can be used as a replacement for sscanf.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'modules/pam_xauth/pam_xauth.c')
0 files changed, 0 insertions, 0 deletions