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((char*)g_clip_buffer, (char*)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 |
|
|
327 |
translated_data = lf2crlf(data, &length); |
translated_data = lf2crlf(data, &length); |
328 |
|
|
329 |
tmp = xmalloc(length + g_clip_buflen); |
tmp = xmalloc(length + g_clip_buflen); |
330 |
strncpy((char*)tmp, (char*)g_clip_buffer, g_clip_buflen); |
strncpy((char *) tmp, (char *) g_clip_buffer, g_clip_buflen); |
331 |
xfree(g_clip_buffer); |
xfree(g_clip_buffer); |
332 |
|
|
333 |
strncpy((char*)(tmp + g_clip_buflen), (char*)translated_data, length); |
strncpy((char *) (tmp + g_clip_buflen), (char *) translated_data, length); |
334 |
xfree(translated_data); |
xfree(translated_data); |
335 |
|
|
336 |
g_clip_buffer = tmp; |
g_clip_buffer = tmp; |