libxtrans: Changes to 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Apr 10 22:10:37 UTC 2024
Xtrans.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
New commits:
commit 656d27ed32af4082e8062c1d7c42b65ea3a6b80f
Author: Kim Woelders <kim at woelders.dk>
Date: Thu Mar 28 18:01:20 2024 +0100
TRANS(GetHostname): Fix "‘strncpy’ output truncated.." warning
Occurs when compiling xserver master with gcc 13.2.1.
In file included from /local/stuff/xorg/include/X11/Xtrans/transport.c:69:
In function ‘_XSERVTransGetHostname’,
inlined from ‘_XSERVTransConvertAddress’ at /local/stuff/xorg/include/X11/Xtrans/Xtransutil.c:188:12:
/local/stuff/xorg/include/X11/Xtrans/Xtrans.c:1352:5: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
1352 | strncpy (buf, name.nodename, len);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/local/stuff/xorg/include/X11/Xtrans/Xtrans.c:1350:11: note: length computed here
1350 | len = strlen (name.nodename);
| ^~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Kim Woelders <kim at woelders.dk>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/16>
commit 6171150fe9f8edad3f1cfb14cec59e6a42a9c15b
Author: Kim Woelders <kim at woelders.dk>
Date: Thu Mar 28 17:29:26 2024 +0100
TRANS(ParseAddress): Fix "assignment discards ‘const’ qualifier" warnings
Occurs when compiling xserver master with gcc 13.2.1.
In file included from /local/stuff/xorg/include/X11/Xtrans/transport.c:69,
from ../os/xstrans.c:17:
/local/stuff/xorg/include/X11/Xtrans/Xtrans.c: In function ‘_XSERVTransParseAddress’:
/local/stuff/xorg/include/X11/Xtrans/Xtrans.c:216:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
216 | _host = "";
| ^
/local/stuff/xorg/include/X11/Xtrans/Xtrans.c:217:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
217 | _port = address;
| ^
/local/stuff/xorg/include/X11/Xtrans/Xtrans.c:229:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
229 | _host = "";
| ^
/local/stuff/xorg/include/X11/Xtrans/Xtrans.c:230:15: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
230 | _port = address + 5;
| ^
Signed-off-by: Kim Woelders <kim at woelders.dk>
Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/merge_requests/16>
More information about the xorg-commit
mailing list