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:
parent
19da17b78c
commit
dc915d3d62
3
xclip.c
3
xclip.c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user