CVS: rdesktop rdpdr.c,1.24,1.25
Peter ?strand <[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-serv28242
Modified Files:
rdpdr.c
Log Message:
Shouldn't use mid-function var decls
Index: rdpdr.c
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/rdpdr.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** rdpdr.c 2 Apr 2004 15:34:38 -0000 1.24
--- rdpdr.c 5 Apr 2004 19:23:08 -0000 1.25
***************
*** 170,178 ****
{
uint8 magic[4] = "rDNC";
if (NULL == g_rdpdr_clientname) {
g_rdpdr_clientname = hostname;
}
! uint32 hostlen = (strlen(g_rdpdr_clientname) + 1) * 2;
! STREAM s;
s = channel_init(rdpdr_channel, 16 + hostlen);
--- 170,180 ----
{
uint8 magic[4] = "rDNC";
+ STREAM s;
+ uint32 hostlen;
+
if (NULL == g_rdpdr_clientname) {
g_rdpdr_clientname = hostname;
}
! hostlen = (strlen(g_rdpdr_clientname) + 1) * 2;
s = channel_init(rdpdr_channel, 16 + hostlen);
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click