diff options
Diffstat (limited to 'src/lib/libcrypto/conf/conf_def.c')
-rw-r--r-- | src/lib/libcrypto/conf/conf_def.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/conf/conf_def.c b/src/lib/libcrypto/conf/conf_def.c index 5e194de60e..37925b603d 100644 --- a/src/lib/libcrypto/conf/conf_def.c +++ b/src/lib/libcrypto/conf/conf_def.c | |||
@@ -234,7 +234,7 @@ static int def_load_bio(CONF *conf, BIO *in, long *line) | |||
234 | CONFerr(CONF_F_CONF_LOAD_BIO,ERR_R_MALLOC_FAILURE); | 234 | CONFerr(CONF_F_CONF_LOAD_BIO,ERR_R_MALLOC_FAILURE); |
235 | goto err; | 235 | goto err; |
236 | } | 236 | } |
237 | strcpy(section,"default"); | 237 | strlcpy(section,"default",10); |
238 | 238 | ||
239 | if (_CONF_new_data(conf) == 0) | 239 | if (_CONF_new_data(conf) == 0) |
240 | { | 240 | { |
@@ -390,7 +390,7 @@ again: | |||
390 | ERR_R_MALLOC_FAILURE); | 390 | ERR_R_MALLOC_FAILURE); |
391 | goto err; | 391 | goto err; |
392 | } | 392 | } |
393 | strcpy(v->name,pname); | 393 | strlcpy(v->name,pname,strlen(pname)+1); |
394 | if (!str_copy(conf,psection,&(v->value),start)) goto err; | 394 | if (!str_copy(conf,psection,&(v->value),start)) goto err; |
395 | 395 | ||
396 | if (strcmp(psection,section) != 0) | 396 | if (strcmp(psection,section) != 0) |