sessreg: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Jun 7 01:12:42 UTC 2025
sessreg.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit b8a48ac87c5e15fd79dc765596959912b222af38
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date: Fri May 30 17:13:50 2025 -0700
Use strncmp instead of strcmp for ut_host comparison (#3)
Fixes warning from gcc when building against glibc 2.41 headers:
In function ‘set_utmpx’,
inlined from ‘main’ at sessreg.c:367:2:
sessreg.c:587:39: warning: ‘strcmp’ argument 1 declared attribute
‘nonstring’ [-Wstringop-overread]
587 | if ( (strcmp(tmpu->ut_host, line) == 0 ) &&
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Closes: https://gitlab.freedesktop.org/xorg/app/sessreg/-/issues/3
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/app/sessreg/-/merge_requests/11>
More information about the xorg-commit
mailing list