libsec: fix mistake: strnchr -> strchr
This commit is contained in:
parent
582d2e664f
commit
b42d441a23
|
@ -2300,7 +2300,7 @@ copysubject(char *name, int nname, char *subject)
|
||||||
if(subject == nil)
|
if(subject == nil)
|
||||||
return;
|
return;
|
||||||
strncpy(name, subject, nname-1);
|
strncpy(name, subject, nname-1);
|
||||||
e = strnchr(name, ',');
|
e = strchr(name, ',');
|
||||||
if(e != nil)
|
if(e != nil)
|
||||||
*e = 0; /* take just CN part of Distinguished Name */
|
*e = 0; /* take just CN part of Distinguished Name */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue