In case you or anyone else cares, this patch will take any cuts from X, and strip the trailing white space before sending it to the VNC server clipboard. I was so motivated thanks to pine's new display method that prints whitespace all over the place :-(, and the effects of cutting/pasting urls from the new version of pine. diff -cr x2vnc-1.1/x.c x2vnc-1.1jf/x.c *** x2vnc-1.1/x.c Fri Feb 4 17:19:04 2000 --- x2vnc-1.1jf/x.c Mon Mar 26 18:04:35 2001 *************** *** 620,625 **** --- 620,632 ---- str = XFetchBytes(dpy, &len); if (str) { + while ((len>0) && + ((str[len-1]==32)||(str[len-1]==9)||(str[len-1]==10)||(str[len-1]==13)) + ) { + str[len]=0; + len--; + } + if (!SendClientCutText(str, len)) return False; XFree(str);