]> git.lizzy.rs Git - plan9front.git/commitdiff
libsec: fix mistake: strnchr -> strchr
authorcinap_lenrek <cinap_lenrek@felloff.net>
Sat, 30 Dec 2017 01:47:02 +0000 (02:47 +0100)
committercinap_lenrek <cinap_lenrek@felloff.net>
Sat, 30 Dec 2017 01:47:02 +0000 (02:47 +0100)
sys/src/libsec/port/x509.c

index f9a22aab9a6d3082579e14e645632d02dca9f612..e5b92039cda3e5bad061cb2f63d80a9199a6a28c 100644 (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 */
 }