summaryrefslogtreecommitdiff
path: root/sys/src/libc/9sys/pushssl.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2020-12-07 14:24:51 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2020-12-07 14:24:51 +0100
commitf1e15da8f550b12196d57e245437251f6eb289b5 (patch)
tree056e930a518b6e4a5e993fcad133ba4bc9855a01 /sys/src/libc/9sys/pushssl.c
parent544bca0290df1dc512641a1ab23e184ccc2406b3 (diff)
libc: open internal file-descriptor with OCEXEC flag
Diffstat (limited to 'sys/src/libc/9sys/pushssl.c')
-rw-r--r--sys/src/libc/9sys/pushssl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/libc/9sys/pushssl.c b/sys/src/libc/9sys/pushssl.c
index 8817dd1c3..29eee92a3 100644
--- a/sys/src/libc/9sys/pushssl.c
+++ b/sys/src/libc/9sys/pushssl.c
@@ -11,7 +11,7 @@ int
pushssl(int fd, char *alg, char *secin, char *secout, int *cfd)
{
char buf[8];
- char dname[64];
+ char dname[32];
int n, data, ctl;
ctl = open("#D/ssl/clone", ORDWR);
@@ -21,7 +21,7 @@ pushssl(int fd, char *alg, char *secin, char *secout, int *cfd)
if(n < 0)
goto error;
buf[n] = 0;
- sprint(dname, "#D/ssl/%s/data", buf);
+ snprint(dname, sizeof(dname), "#D/ssl/%s/data", buf);
data = open(dname, ORDWR);
if(data < 0)
goto error;