diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2005-05-10 10:23:12 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2005-05-10 10:23:12 +0000 |
commit | e37899281f2542dcecb2e3fac3f95fff3adde08a (patch) | |
tree | 6ab3b8c83c90046e4a7ee07fe283adc22f32e331 /lib | |
parent | be3b115103059141e928108cf03ed527ca680b35 (diff) |
kill strcpy; ok hshoexer@, prodded by david@
Diffstat (limited to 'lib')
-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; } |