diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/src/apps/ca.c | 2 | ||||
-rw-r--r-- | src/lib/libssl/src/apps/s_socket.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/src/apps/ca.c b/src/lib/libssl/src/apps/ca.c index b934b52cc5..44c1679a17 100644 --- a/src/lib/libssl/src/apps/ca.c +++ b/src/lib/libssl/src/apps/ca.c | |||
@@ -1258,7 +1258,7 @@ bad: | |||
1258 | goto err; | 1258 | goto err; |
1259 | } | 1259 | } |
1260 | 1260 | ||
1261 | strcpy(buf[2],outdir); | 1261 | strlcpy(buf[2],outdir,sizeof(buf[2])); |
1262 | 1262 | ||
1263 | #ifndef OPENSSL_SYS_VMS | 1263 | #ifndef OPENSSL_SYS_VMS |
1264 | BUF_strlcat(buf[2],"/",sizeof(buf[2])); | 1264 | BUF_strlcat(buf[2],"/",sizeof(buf[2])); |
diff --git a/src/lib/libssl/src/apps/s_socket.c b/src/lib/libssl/src/apps/s_socket.c index 2cb5fce192..d9fad2d1d7 100644 --- a/src/lib/libssl/src/apps/s_socket.c +++ b/src/lib/libssl/src/apps/s_socket.c | |||
@@ -481,7 +481,7 @@ static struct hostent *GetHostByName(char *name) | |||
481 | /* else add to cache */ | 481 | /* else add to cache */ |
482 | if(strlen(name) < sizeof ghbn_cache[0].name) | 482 | if(strlen(name) < sizeof ghbn_cache[0].name) |
483 | { | 483 | { |
484 | strcpy(ghbn_cache[lowi].name,name); | 484 | strlcpy(ghbn_cache[lowi].name,name, sizeof(ghbn_cache[0].name)); |
485 | memcpy((char *)&(ghbn_cache[lowi].ent),ret,sizeof(struct hostent)); | 485 | memcpy((char *)&(ghbn_cache[lowi].ent),ret,sizeof(struct hostent)); |
486 | ghbn_cache[lowi].order=ghbn_miss+ghbn_hits; | 486 | ghbn_cache[lowi].order=ghbn_miss+ghbn_hits; |
487 | } | 487 | } |