# HG changeset patch # User Gerd Moellmann # Date 942931864 0 # Node ID b16a6381a87bf6f6a339ce2f5460fa3952485181 # Parent d1f081e4844a1ce8dcaab3a4718241b79badd22e (struct buffer_text): Add comment about moving buffer text if REL_ALLOC is defined. diff -r d1f081e4844a -r b16a6381a87b src/buffer.h --- a/src/buffer.h Thu Nov 18 13:11:37 1999 +0000 +++ b/src/buffer.h Thu Nov 18 13:31:04 1999 +0000 @@ -388,7 +388,12 @@ struct buffer_text { - unsigned char *beg; /* Actual address of buffer contents. */ + /* Actual address of buffer contents. If REL_ALLOC is defined, + this address might change when blocks are relocated which can + e.g. happen when malloc is called. So, don't pass a pointer + into a buffer's text to functions that malloc. */ + unsigned char *beg; + int gpt; /* Char pos of gap in buffer. */ int z; /* Char pos of end of buffer. */ int gpt_byte; /* Byte pos of gap in buffer. */