[PATCH] cpukit/libblock/bdpart-register.c: Fix string truncation warning.

2020-09-15 Thread Aschref Ben-Thabet
From: Aschref Ben Thabet Replace strncpy() with memcpy() to guarantee a safe copying of characters. --- cpukit/libblock/src/bdpart-mount.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/cpukit/libblock/src/bdpart-mount.c b/cpukit/libblock/src/bdpart-mount.c i

[PATCH] cpukit/libblock/bdpart-register.c: Fix string truncation warning.

2020-09-15 Thread Aschref Ben-Thabet
From: Aschref Ben Thabet Replace strncpy() with memcpy() to guarantee a safe copying of characters. --- cpukit/libblock/src/bdpart-register.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/libblock/src/bdpart-register.c b/cpukit/libblock/src/bdpart-register.c index 9