[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/5] Fix styling in explicit bzero
From: |
roucaries . bastien |
Subject: |
[PATCH 5/5] Fix styling in explicit bzero |
Date: |
Sat, 11 Apr 2020 23:20:35 +0200 |
From: Bastien Roucariès <address@hidden>
Signed-off-by: Bastien Roucariès <address@hidden>
---
lib/explicit_bzero.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/explicit_bzero.c b/lib/explicit_bzero.c
index 59215852c..21f42292d 100644
--- a/lib/explicit_bzero.c
+++ b/lib/explicit_bzero.c
@@ -53,7 +53,7 @@ void
explicit_bzero (void *s, size_t len)
{
#ifdef HAVE_EXPLICIT_MEMSET
- explicit_memset (s, 0, len);
+ explicit_memset (s, '\0', len);
#elif HAVE_MEMSET_S
(void) memset_s(s,len,'\0',len);
#elif HAVE_SECUREZEROMEMORY
--
2.25.1
- [patch] Improve explicit_bzero, roucaries . bastien, 2020/04/11
- [PATCH 1/5] Use memset_s if possible for explicit_bzero, roucaries . bastien, 2020/04/11
- [PATCH 2/5] Use SecureZeroMemory on windows for explicit_bzero, roucaries . bastien, 2020/04/11
- [PATCH 5/5] Fix styling in explicit bzero,
roucaries . bastien <=
- [PATCH 3/5] Support clang for explicit_bzero, roucaries . bastien, 2020/04/11
- [PATCH 4/5] Use volatile trick for explicit_bzero, roucaries . bastien, 2020/04/11
- Re: [patch] Improve explicit_bzero, Bruno Haible, 2020/04/11