Transpose memset(3) arguments
Spotted by clang, comment patch while here. OK denis
This commit is contained in:
parent
e4d95fd0fa
commit
a366b3b1cc
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.3 2019/07/12 20:49:37 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.4 2020/06/18 11:24:29 kn Exp $
|
||||
|
||||
COMMENT= split secrets using Shamir's Secret Sharing Scheme
|
||||
|
||||
DISTNAME= ssss-0.5
|
||||
REVISION= 0
|
||||
REVISION= 1
|
||||
|
||||
CATEGORIES= security
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2018/10/01 11:39:44 denis Exp $
|
||||
$OpenBSD: patch-Makefile,v 1.2 2020/06/18 11:24:29 kn Exp $
|
||||
|
||||
Honour CFLAGS, do not strip during build.
|
||||
|
||||
Index: Makefile
|
||||
--- Makefile.orig
|
||||
|
16
security/ssss/patches/patch-ssss_c
Normal file
16
security/ssss/patches/patch-ssss_c
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-ssss_c,v 1.1 2020/06/18 11:24:29 kn Exp $
|
||||
|
||||
Transpose memset(3) arguments, noted by clang.
|
||||
|
||||
Index: ssss.c
|
||||
--- ssss.c.orig
|
||||
+++ ssss.c
|
||||
@@ -171,7 +171,7 @@ void field_print(FILE* stream, const mpz_t x, int hexm
|
||||
size_t t;
|
||||
unsigned int i;
|
||||
int printable, warn = 0;
|
||||
- memset(buf, degree / 8 + 1, 0);
|
||||
+ memset(buf, 0, degree / 8 + 1);
|
||||
mpz_export(buf, &t, 1, 1, 0, 0, x);
|
||||
for(i = 0; i < t; i++) {
|
||||
printable = (buf[i] >= 32) && (buf[i] < 127);
|
Loading…
Reference in New Issue
Block a user