shithub: riscv

Download patch

ref: b42d441a230bad9fd1ae8e3543b1c0f28c7c62aa
parent: 582d2e664f85819f56599c8b632a04b4bd4dddc7
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Dec 29 21:47:02 EST 2017

libsec: fix mistake: strnchr -> strchr

--- a/sys/src/libsec/port/x509.c
+++ b/sys/src/libsec/port/x509.c
@@ -2300,7 +2300,7 @@
 	if(subject == nil)
 		return;
 	strncpy(name, subject, nname-1);
-	e = strnchr(name, ',');
+	e = strchr(name, ',');
 	if(e != nil)
 		*e = 0;	/* take just CN part of Distinguished Name */
 }