don't lose the data in it.
+2001-11-25 Richard M. Stallman <rms@gnu.org>
+
+ * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
+ don't lose the data in it.
+
2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
* window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
but not past 64k. */
if (bufsize < 64 * 1024 && total_read > 32 * bufsize)
{
+ char *tempptr;
bufsize *= 2;
- bufptr = (char *) alloca (bufsize);
+
+ tempptr = (char *) alloca (bufsize);
+ bcopy (bufptr, tempptr, bufsize / 2);
+ bufptr = tempptr;
}
if (!NILP (display) && INTERACTIVE)