From: Richard Levitte Date: Thu, 6 May 2004 09:33:29 +0000 (+0000) Subject: When the pointer 'from' changes, it's stored length needs to change as X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f527222c4df597722688cb378c284c6efcf2a402;p=oweals%2Fopenssl.git When the pointer 'from' changes, it's stored length needs to change as well. Notified by Frank Kardel in PR 879. --- 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