Compile fix for older GCCs from Nikolai V. Ivanyushin <nvi@sven.ru>

(Move declaration of variable to start of function)


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@939 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Michael Gernoth 2005-07-30 08:39:06 +00:00
parent 19da17b78c
commit dc915d3d62

View File

@ -321,11 +321,12 @@ xclip_handle_PropertyNotify(XPropertyEvent * event)
{
uint8 *translated_data;
uint32 length = nitems;
uint8 *tmp;
DEBUG_CLIPBOARD(("Translating linebreaks before sending data\n"));
translated_data = lf2crlf(data, &length);
uint8 *tmp = xmalloc(length + g_clip_buflen);
tmp = xmalloc(length + g_clip_buflen);
strncpy((char*)tmp, (char*)g_clip_buffer, g_clip_buflen);
xfree(g_clip_buffer);