"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "seamless.c" between
rdesktop-1.8.3.tar.gz and rdesktop-1.8.5.tar.gz

About: rdesktop is a client for Windows Terminal Services, capable of natively speaking Remote Desktop Protocol (RDP) in order to present the user’s Windows desktop.

seamless.c  (rdesktop-1.8.3):seamless.c  (rdesktop-1.8.5)
skipping to change at line 175 skipping to change at line 175
{ {
byte[0] = *tok8; byte[0] = *tok8;
tok8++; tok8++;
if (*tok8 == '\0') if (*tok8 == '\0')
return False; return False;
byte[1] = *tok8; byte[1] = *tok8;
tok8++; tok8++;
icon_buf[len] = strtol(byte, NULL, 16); icon_buf[len] = strtol(byte, NULL, 16);
len++; len++;
if ((size_t)len >= sizeof(icon_buf))
{
warning("seamless_process_line(), icon data would
overrun icon_buf");
break;
}
} }
ui_seamless_seticon(id, tok5, width, height, chunk, icon_buf, len ); ui_seamless_seticon(id, tok5, width, height, chunk, icon_buf, len );
} }
else if (!strcmp("DELICON", tok1)) else if (!strcmp("DELICON", tok1))
{ {
int width, height; int width, height;
if (!tok6) if (!tok6)
return False; return False;
skipping to change at line 375 skipping to change at line 381
} }
return True; return True;
} }
static void static void
seamless_process(STREAM s) seamless_process(STREAM s)
{ {
unsigned int pkglen; unsigned int pkglen;
char *buf; char *buf;
pkglen = s->end - s->p; pkglen = s_remaining(s);
/* str_handle_lines requires null terminated strings */ /* str_handle_lines requires null terminated strings */
buf = xmalloc(pkglen + 1); buf = xmalloc(pkglen + 1);
STRNCPY(buf, (char *) s->p, pkglen + 1); in_uint8a(s, buf, pkglen);
buf[pkglen] = '\0';
#if 0 #if 0
printf("seamless recv:\n"); printf("seamless recv:\n");
hexdump(s->p, pkglen); hexdump(buf, pkglen);
#endif #endif
str_handle_lines(buf, &seamless_rest, seamless_line_handler, NULL); str_handle_lines(buf, &seamless_rest, seamless_line_handler, NULL);
xfree(buf); xfree(buf);
} }
RD_BOOL RD_BOOL
seamless_init(void) seamless_init(void)
{ {
skipping to change at line 442 skipping to change at line 449
len = snprintf(buf, sizeof(buf), "%s", escaped); len = snprintf(buf, sizeof(buf), "%s", escaped);
free(escaped); free(escaped);
assert(len < (sizeof(buf) - 1)); assert(len < (sizeof(buf) - 1));
buf[len] = '\n'; buf[len] = '\n';
buf[len + 1] = '\0'; buf[len + 1] = '\0';
len++; len++;
s = channel_init(seamless_channel, len); s = channel_init(seamless_channel, len);
out_uint8p(s, buf, len) s_mark_end(s); out_uint8a(s, buf, len) s_mark_end(s);
DEBUG_SEAMLESS(("seamlessrdp sending:%s", buf)); DEBUG_SEAMLESS(("seamlessrdp sending:%s", buf));
#if 0 #if 0
printf("seamless send:\n"); printf("seamless send:\n");
hexdump(s->channel_hdr + 8, s->end - s->channel_hdr - 8); hexdump(s->channel_hdr + 8, s->end - s->channel_hdr - 8);
#endif #endif
channel_send(s, seamless_channel); channel_send(s, seamless_channel);
s_free(s);
return seamless_serial++; return seamless_serial++;
} }
unsigned int unsigned int
seamless_send_sync() seamless_send_sync()
{ {
if (!g_seamless_rdp) if (!g_seamless_rdp)
return (unsigned int) -1; return (unsigned int) -1;
 End of changes. 6 change blocks. 
4 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)