git: 9front

Download patch

ref: b101cdfb863ff7952157fe31634cb6d349370401
parent: 3a7d9343efb2dc5a7d14a240e3aea70acb699c59
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 */
 }
--