diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-12-30 02:47:02 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-12-30 02:47:02 +0100 |
commit | b42d441a230bad9fd1ae8e3543b1c0f28c7c62aa (patch) | |
tree | 1a118e28a34531367739e2b7250f7183b0ba2345 | |
parent | 582d2e664f85819f56599c8b632a04b4bd4dddc7 (diff) | |
download | plan9front-b42d441a230bad9fd1ae8e3543b1c0f28c7c62aa.tar.xz |
libsec: fix mistake: strnchr -> strchr
-rw-r--r-- | sys/src/libsec/port/x509.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/libsec/port/x509.c b/sys/src/libsec/port/x509.c index f9a22aab9..e5b92039c 100644 --- a/sys/src/libsec/port/x509.c +++ b/sys/src/libsec/port/x509.c @@ -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 */ } |