libsec: fix mistake: strnchr -> strchr

This commit is contained in:
cinap_lenrek 2017-12-30 02:47:02 +01:00
parent 582d2e664f
commit b42d441a23

View file

@ -2300,7 +2300,7 @@ copysubject(char *name, int nname, char *subject)
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 */
}