You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
796 B

  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. memset is available across all libc implementation
  6. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  7. ---
  8. Upstream-Status: Pending
  9. src/des_impl.c | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. diff --git a/src/des_impl.c b/src/des_impl.c
  12. index 9dbccaf..15bec2a 100644
  13. --- a/src/des_impl.c
  14. +++ b/src/des_impl.c
  15. @@ -588,7 +588,7 @@ _des_crypt (char *buf, unsigned len, struct desparams *desp)
  16. }
  17. tin0 = tin1 = tout0 = tout1 = xor0 = xor1 = 0;
  18. tbuf[0] = tbuf[1] = 0;
  19. - __bzero (schedule, sizeof (schedule));
  20. + memset (schedule, 0, sizeof (schedule));
  21. return (1);
  22. }
  23. --
  24. 2.12.2