From: Andrew Innes Date: Sun, 2 May 1999 10:30:22 +0000 (+0000) Subject: (Fw32_set_clipboard_data): Undo last change to add X-Git-Tag: emacs-20.4~276 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=43df7d0b43a076687570eeabbcca97c6220a78e3;p=emacs.git (Fw32_set_clipboard_data): Undo last change to add nlines to encoding_buffer_size (real bug was in a ccl program in lisp/international/coding.el). --- diff --git a/src/w32select.c b/src/w32select.c index cb506aefb42..65db0b5458e 100644 --- a/src/w32select.c +++ b/src/w32select.c @@ -194,7 +194,7 @@ DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data, Sw32_set_clipboard_dat (Fcheck_coding_system (Vnext_selection_coding_system), &coding); Vnext_selection_coding_system = Qnil; coding.mode |= CODING_MODE_LAST_BLOCK; - bufsize = encoding_buffer_size (&coding, nbytes) + nlines; + bufsize = encoding_buffer_size (&coding, nbytes); if ((htext = GlobalAlloc (GMEM_MOVEABLE | GMEM_DDESHARE, bufsize)) == NULL) goto error; if ((dst = (unsigned char *) GlobalLock (htext)) == NULL)