From 46e9a491650c5cafe2dc2844fd03e5bf87a6ab55 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 6 May 2004 09:55:18 +0000 Subject: [PATCH] Recent changes from 0.9.6-stable. --- Makefile.org | 3 +-- crypto/conf/conf_def.c | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile.org b/Makefile.org index a549c91406..bf5f634f49 100644 --- a/Makefile.org +++ b/Makefile.org @@ -642,8 +642,7 @@ install: all install_docs $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl \ $(INSTALL_PREFIX)$(OPENSSLDIR)/misc \ $(INSTALL_PREFIX)$(OPENSSLDIR)/certs \ - $(INSTALL_PREFIX)$(OPENSSLDIR)/private \ - $(INSTALL_PREFIX)$(OPENSSLDIR)/lib + $(INSTALL_PREFIX)$(OPENSSLDIR)/private @for i in $(EXHEADER) ;\ do \ (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ diff --git a/crypto/conf/conf_def.c b/crypto/conf/conf_def.c index adc28eebff..aba2c9fd84 100644 --- a/crypto/conf/conf_def.c +++ b/crypto/conf/conf_def.c @@ -599,6 +599,11 @@ static int str_copy(CONF *conf, char *section, char **pto, char *from) BUF_MEM_grow(buf,(strlen(p)+len-(e-from))); while (*p) buf->data[to++]= *(p++); + + /* Since we change the pointer 'from', we also have + to change the perceived length of the string it + points at. /RL */ + len -= e-from; from=e; } else -- 2.25.1