diff options
author | 2005-05-10 10:23:11 +0000 | |
---|---|---|
committer | 2005-05-10 10:23:11 +0000 | |
commit | 4209b2f7f2be571f2f672cddad2d690b17783375 (patch) | |
tree | 62cbfca7bdf9ebae4fc065f6cb0440c3841ac17e /lib/libssl/src | |
parent | enter ddb thru alt-escape. (diff) | |
download | wireguard-openbsd-4209b2f7f2be571f2f672cddad2d690b17783375.tar.xz wireguard-openbsd-4209b2f7f2be571f2f672cddad2d690b17783375.zip |
kill strcpy; ok hshoexer@, prodded by david@
Diffstat (limited to 'lib/libssl/src')
-rw-r--r-- | lib/libssl/src/apps/ca.c | 2 | ||||
-rw-r--r-- | lib/libssl/src/apps/s_socket.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/src/apps/ca.c b/lib/libssl/src/apps/ca.c index b934b52cc58..44c1679a17f 100644 --- a/lib/libssl/src/apps/ca.c +++ b/lib/libssl/src/apps/ca.c @@ -1258,7 +1258,7 @@ bad: goto err; } - strcpy(buf[2],outdir); + strlcpy(buf[2],outdir,sizeof(buf[2])); #ifndef OPENSSL_SYS_VMS BUF_strlcat(buf[2],"/",sizeof(buf[2])); diff --git a/lib/libssl/src/apps/s_socket.c b/lib/libssl/src/apps/s_socket.c index 2cb5fce1926..d9fad2d1d73 100644 --- a/lib/libssl/src/apps/s_socket.c +++ b/lib/libssl/src/apps/s_socket.c @@ -481,7 +481,7 @@ static struct hostent *GetHostByName(char *name) /* else add to cache */ if(strlen(name) < sizeof ghbn_cache[0].name) { - strcpy(ghbn_cache[lowi].name,name); + strlcpy(ghbn_cache[lowi].name,name, sizeof(ghbn_cache[0].name)); memcpy((char *)&(ghbn_cache[lowi].ent),ret,sizeof(struct hostent)); ghbn_cache[lowi].order=ghbn_miss+ghbn_hits; } |