CVS: rdesktop xclip.c,1.16,1.17
Michael Gernoth <[email protected]>
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/rdesktop In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12761 Modified Files: xclip.c Log Message: Compile fix for older GCCs from Nikolai V. Ivanyushin <[email protected]> (Move declaration of variable to start of function) Index: xclip.c =================================================================== RCS file: /cvsroot/rdesktop/rdesktop/xclip.c,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** xclip.c 27 Jun 2005 21:57:04 -0000 1.16 --- xclip.c 30 Jul 2005 08:39:06 -0000 1.17 *************** *** 322,330 **** uint8 *translated_data; uint32 length = nitems; DEBUG_CLIPBOARD(("Translating linebreaks before sending data\n")); translated_data = lf2crlf(data, &length); ! uint8 *tmp = xmalloc(length + g_clip_buflen); strncpy((char*)tmp, (char*)g_clip_buffer, g_clip_buflen); xfree(g_clip_buffer); --- 322,331 ---- uint8 *translated_data; uint32 length = nitems; + uint8 *tmp; DEBUG_CLIPBOARD(("Translating linebreaks before sending data\n")); translated_data = lf2crlf(data, &length); ! tmp = xmalloc(length + g_clip_buflen); strncpy((char*)tmp, (char*)g_clip_buffer, g_clip_buflen); xfree(g_clip_buffer); ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click