* main - cleanup: use dm_strncpy
@ 2021-03-17 0:00 Zdenek Kabelac
0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2021-03-17 0:00 UTC (permalink / raw)
To: lvm-devel
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))
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-17 0:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-17 0:00 main - cleanup: use dm_strncpy Zdenek Kabelac
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.