]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fw32_set_clipboard_data): Undo last change to add
authorAndrew Innes <andrewi@gnu.org>
Sun, 2 May 1999 10:30:22 +0000 (10:30 +0000)
committerAndrew Innes <andrewi@gnu.org>
Sun, 2 May 1999 10:30:22 +0000 (10:30 +0000)
nlines to encoding_buffer_size (real bug was in a ccl program in
lisp/international/coding.el).

src/w32select.c

index cb506aefb42c93c48ec30cbc6f0c7205978e4a15..65db0b5458ea63f36c26fb9fd45cf9ba84dd10ef 100644 (file)
@@ -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)