diff options
Diffstat (limited to 'meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch')
-rw-r--r-- | meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch b/meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch new file mode 100644 index 0000000000..d2b4da6ae2 --- /dev/null +++ b/meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 20badc3e3608953fb5b36bb2e16fa51bd731aebc Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 18 Apr 2017 09:35:35 -0700 | ||
4 | Subject: [PATCH] replace __bzero() with memset() API | ||
5 | |||
6 | memset is available across all libc implementation | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | Upstream-Status: Pending | ||
11 | |||
12 | src/des_impl.c | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/src/des_impl.c b/src/des_impl.c | ||
16 | index 9dbccaf..15bec2a 100644 | ||
17 | --- a/src/des_impl.c | ||
18 | +++ b/src/des_impl.c | ||
19 | @@ -588,7 +588,7 @@ _des_crypt (char *buf, unsigned len, struct desparams *desp) | ||
20 | } | ||
21 | tin0 = tin1 = tout0 = tout1 = xor0 = xor1 = 0; | ||
22 | tbuf[0] = tbuf[1] = 0; | ||
23 | - __bzero (schedule, sizeof (schedule)); | ||
24 | + memset (schedule, 0, sizeof (schedule)); | ||
25 | |||
26 | return (1); | ||
27 | } | ||
28 | -- | ||
29 | 2.12.2 | ||
30 | |||