/[rdesktop]/sourceforge.net/trunk/rdesktop/xclip.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/xclip.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 913 by astrand, Mon Jun 27 12:18:48 2005 UTC revision 914 by stargo, Mon Jun 27 21:57:04 2005 UTC
# Line 191  xclip_handle_SelectionNotify(XSelectionE Line 191  xclip_handle_SelectionNotify(XSelectionE
191                          translated_data = lf2crlf(data, &length);                          translated_data = lf2crlf(data, &length);
192    
193                          g_clip_buffer = (uint8 *) xmalloc(length);                          g_clip_buffer = (uint8 *) xmalloc(length);
194                          strncpy(g_clip_buffer, translated_data, length);                          strncpy((char*)g_clip_buffer, (char*)translated_data, length);
195                          xfree(translated_data);                          xfree(translated_data);
196                          g_clip_buflen = length;                          g_clip_buflen = length;
197    
# Line 326  xclip_handle_PropertyNotify(XPropertyEve Line 326  xclip_handle_PropertyNotify(XPropertyEve
326                          translated_data = lf2crlf(data, &length);                          translated_data = lf2crlf(data, &length);
327    
328                          uint8 *tmp = xmalloc(length + g_clip_buflen);                          uint8 *tmp = xmalloc(length + g_clip_buflen);
329                          strncpy(tmp, g_clip_buffer, g_clip_buflen);                          strncpy((char*)tmp, (char*)g_clip_buffer, g_clip_buflen);
330                          xfree(g_clip_buffer);                          xfree(g_clip_buffer);
331    
332                          strncpy(tmp + g_clip_buflen, translated_data, length);                          strncpy((char*)(tmp + g_clip_buflen), (char*)translated_data, length);
333                          xfree(translated_data);                          xfree(translated_data);
334    
335                          g_clip_buffer = tmp;                          g_clip_buffer = tmp;

Legend:
Removed from v.913  
changed lines
  Added in v.914

  ViewVC Help
Powered by ViewVC 1.1.26