diff options
Diffstat (limited to 'meta/recipes-core/glibc/glibc/0029-Replace-strncpy-with-memccpy-to-fix-Wstringop-trunca.patch')
-rw-r--r-- | meta/recipes-core/glibc/glibc/0029-Replace-strncpy-with-memccpy-to-fix-Wstringop-trunca.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/meta/recipes-core/glibc/glibc/0029-Replace-strncpy-with-memccpy-to-fix-Wstringop-trunca.patch b/meta/recipes-core/glibc/glibc/0029-Replace-strncpy-with-memccpy-to-fix-Wstringop-trunca.patch deleted file mode 100644 index fa29f4165b..0000000000 --- a/meta/recipes-core/glibc/glibc/0029-Replace-strncpy-with-memccpy-to-fix-Wstringop-trunca.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | From 113e0516fbd3ce18253f0423762416d4c4b38fb0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 22 Mar 2018 17:57:37 -0700 | ||
4 | Subject: [PATCH 29/29] Replace strncpy with memccpy to fix | ||
5 | -Wstringop-truncation. | ||
6 | |||
7 | * nis/nss_nisplus/nisplus-parser.c: Replace strncpy with memcpy to | ||
8 | avoid -Wstringop-truncation. | ||
9 | --- | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | Upstream-Status: Submitted [https://sourceware.org/ml/libc-alpha/2018-03/msg00531.html] | ||
12 | |||
13 | nis/nss_nisplus/nisplus-parser.c | 4 ++-- | ||
14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/nis/nss_nisplus/nisplus-parser.c b/nis/nss_nisplus/nisplus-parser.c | ||
17 | index 8dc021e73d..b53284f889 100644 | ||
18 | --- a/nis/nss_nisplus/nisplus-parser.c | ||
19 | +++ b/nis/nss_nisplus/nisplus-parser.c | ||
20 | @@ -87,7 +87,7 @@ _nss_nisplus_parse_pwent (nis_result *result, struct passwd *pw, | ||
21 | if (len >= room_left) | ||
22 | goto no_more_room; | ||
23 | |||
24 | - strncpy (first_unused, numstr, len); | ||
25 | + memcpy (first_unused, numstr, len); | ||
26 | first_unused[len] = '\0'; | ||
27 | numstr = first_unused; | ||
28 | } | ||
29 | @@ -103,7 +103,7 @@ _nss_nisplus_parse_pwent (nis_result *result, struct passwd *pw, | ||
30 | if (len >= room_left) | ||
31 | goto no_more_room; | ||
32 | |||
33 | - strncpy (first_unused, numstr, len); | ||
34 | + memcpy (first_unused, numstr, len); | ||
35 | first_unused[len] = '\0'; | ||
36 | numstr = first_unused; | ||
37 | } | ||
38 | -- | ||
39 | 2.16.2 | ||
40 | |||