changeset 24258:63101e55ebea

Fix last change.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 03 Feb 1999 16:40:32 +0000
parents 7507c0552393
children aafda0f854b0
files src/w16select.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/w16select.c	Wed Feb 03 14:53:47 1999 +0000
+++ b/src/w16select.c	Wed Feb 03 16:40:32 1999 +0000
@@ -475,7 +475,6 @@
       /* No multibyte character in OBJ.  We need not encode it, but we
 	 will have to convert it to DOS CR-LF style.  */
       no_crlf_conversion = 0;
-      dst = src;
     }
   else
     {
@@ -497,6 +496,7 @@
       encode_coding (&coding, src, dst, nbytes, bufsize);
       no_crlf_conversion = 1;
       nbytes = coding.produced;
+      src = dst;
     }
 
   if (!open_clipboard ())
@@ -504,7 +504,7 @@
   
   ok = empty_clipboard ()
     && ((put_status
-	 = set_clipboard_data (CF_OEMTEXT, dst, nbytes, no_crlf_conversion))
+	 = set_clipboard_data (CF_OEMTEXT, src, nbytes, no_crlf_conversion))
 	== 0);
 
   if (!no_crlf_conversion)