diff options
author | djm <> | 2005-05-10 10:23:11 +0000 |
---|---|---|
committer | djm <> | 2005-05-10 10:23:11 +0000 |
commit | 1e8202a4c8cbeba223d0b0dc54fd1d84ffc48e40 (patch) | |
tree | a3e9721943650d6e5772535e111f53e989c89d26 /src/lib | |
parent | b99d6be9e154df69fe2f7a3e34e3d225cbbb9e61 (diff) | |
download | openbsd-1e8202a4c8cbeba223d0b0dc54fd1d84ffc48e40.tar.gz openbsd-1e8202a4c8cbeba223d0b0dc54fd1d84ffc48e40.tar.bz2 openbsd-1e8202a4c8cbeba223d0b0dc54fd1d84ffc48e40.zip |
kill strcpy; ok hshoexer@, prodded by david@
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 | } |