From: David Teigland <teigland@sourceware.org>
To: lvm-devel@redhat.com
Subject: dev-next - cleanup: use dm_strncpy
Date: Mon, 22 Mar 2021 15:38:56 +0000 (GMT) [thread overview]
Message-ID: <20210322153856.C6521385781A@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=94701b700b83971a49c242e070070526d4eb42dd
Commit: 94701b700b83971a49c242e070070526d4eb42dd
Parent: 4d75c4f597b28e4ea014ef61082074187dc6245a
Author: Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate: Tue Mar 16 14:06:24 2021 +0100
Committer: Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Wed Mar 17 00:50:22 2021 +0100
cleanup: use dm_strncpy
Use own function.
---
lib/activate/dev_manager.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c
index cd9d27e11..aa88e6868 100644
--- a/lib/activate/dev_manager.c
+++ b/lib/activate/dev_manager.c
@@ -839,8 +839,7 @@ static int _info(struct cmd_context *cmd,
if (strcmp(suffix_position + 1, suffix))
continue;
- (void) strncpy(old_style_dlid, dlid, sizeof(old_style_dlid));
- old_style_dlid[sizeof(old_style_dlid) - 1] = '\0';
+ (void) dm_strncpy(old_style_dlid, dlid, sizeof(old_style_dlid));
if (!_info_run(old_style_dlid, dminfo, read_ahead, seg_status,
name_check, with_open_count, with_read_ahead,
0, 0))
reply other threads:[~2021-03-22 15:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210322153856.C6521385781A@sourceware.org \
--to=teigland@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.