shithub: riscv

Download patch

ref: eb73718c25eede77fa970c837f6c000d84ca8f55
parent: 9b8af272991e25aed9be9b1349b6677359739e94
parent: 3bdf242555b9540f1fc6924ea7b24832fb9191fa
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Apr 28 16:51:19 EDT 2020

merge

--- a/sys/src/libsec/port/ecc.c
+++ b/sys/src/libsec/port/ecc.c
@@ -498,7 +498,7 @@
 	}
 	for(; *src == 0; src++)
 		*dst++ = code[0];
-	dst--;
+	*dst-- = 0;
 	while(dst > sdst){
 		t = *sdst;
 		*sdst++ = *dst;