[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch release/7.0 updated: * install-info/install-info.c (split_entry):
From: |
Gavin D. Smith |
Subject: |
branch release/7.0 updated: * install-info/install-info.c (split_entry): Rewrite to silence obnoxious gcc warning about use of strncat. |
Date: |
Mon, 09 Jan 2023 13:46:45 -0500 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch release/7.0
in repository texinfo.
The following commit(s) were added to refs/heads/release/7.0 by this push:
new 4a6f921c74 * install-info/install-info.c (split_entry): Rewrite to
silence obnoxious gcc warning about use of strncat.
4a6f921c74 is described below
commit 4a6f921c74a7c1d9bcb2fc7d14e27456ab4897a7
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Mon Jan 9 18:45:45 2023 +0000
* install-info/install-info.c (split_entry):
Rewrite to silence obnoxious gcc warning about use of strncat.
---
ChangeLog | 5 +++++
install-info/install-info.c | 7 +++----
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4eec9ac65d..b7fe29752c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-01-09 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * install-info/install-info.c (split_entry):
+ Rewrite to silence obnoxious gcc warning about use of strncat.
+
2022-12-29 Gavin Smith <gavinsmith0123@gmail.com>
* doc/texinfo.texi, doc/info-stnd.texi, doc/texi2any_api.texi:
diff --git a/install-info/install-info.c b/install-info/install-info.c
index 2ab91589b2..19850b2756 100644
--- a/install-info/install-info.c
+++ b/install-info/install-info.c
@@ -1,6 +1,6 @@
/* install-info -- merge Info directory entries from an Info file.
- Copyright 1996-2022 Free Software Foundation, Inc.
+ Copyright 1996-2023 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -1603,9 +1603,8 @@ split_entry (const char *entry, char **name, size_t
*name_len,
else
{
/* Just show the rest when there's no newline. */
- size_t length = strlen (ptr);
- strncat (*description, ptr, length);
- ptr += length;
+ strcat (*description, ptr);
+ ptr += strlen (ptr);
}
}
/* Descriptions end in a new line. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch release/7.0 updated: * install-info/install-info.c (split_entry): Rewrite to silence obnoxious gcc warning about use of strncat.,
Gavin D. Smith <=
- Prev by Date:
branch master updated: * tp/Makefile.am (test_files), tp/Makefile.tres, tp/t/html_tests.t: add a test with the same transliterated file names for a node, an anchor and a float label.
- Next by Date:
branch release/7.0 updated: * info/man.c (check_manpage_node): Disable this code if __sun is defined, to avoid clash with man program on Solaris, where -w means to update the whatis database. Test failure on OpenSolaris 2022.10 reported by Bruno Haible.
- Previous by thread:
branch master updated: * tp/Makefile.am (test_files), tp/Makefile.tres, tp/t/html_tests.t: add a test with the same transliterated file names for a node, an anchor and a float label.
- Next by thread:
branch release/7.0 updated: * info/man.c (check_manpage_node): Disable this code if __sun is defined, to avoid clash with man program on Solaris, where -w means to update the whatis database. Test failure on OpenSolaris 2022.10 reported by Bruno Haible.
- Index(es):