|
@@ -132,8 +132,8 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
char typ = 0;
|
|
|
zKlient->getNachrichtEncrypted( &typ, 1 );
|
|
|
- char len = 0;
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ unsigned char len = 0;
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
char *name = new char[ len + 1 ];
|
|
|
if( len )
|
|
|
zKlient->getNachrichtEncrypted( name, len );
|
|
@@ -221,8 +221,8 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
case 0x2: // Ordner open
|
|
|
{
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- char len = 0;
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ unsigned char len = 0;
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
char *name = new char[ len + 1 ];
|
|
|
name[ (int)len ] = 0;
|
|
|
if( len )
|
|
@@ -271,13 +271,13 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
case 0x3: // Bild laden
|
|
|
{
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- char len = 0;
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ unsigned char len = 0;
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
char *dName = new char[ len + 1 ];
|
|
|
dName[ (int)len ] = 0;
|
|
|
if( len )
|
|
|
zKlient->getNachrichtEncrypted( dName, len );
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
char *bName = new char[ len + 1 ];
|
|
|
bName[ (int)len ] = 0;
|
|
|
if( len )
|
|
@@ -325,8 +325,8 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
case 0x4: // Datei remove
|
|
|
{
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- char len = 0;
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ unsigned char len = 0;
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
char *name = new char[ len + 1 ];
|
|
|
name[ (int)len ] = 0;
|
|
|
if( len )
|
|
@@ -374,13 +374,13 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
case 0x5: // Bild remove
|
|
|
{
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- char len = 0;
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ unsigned char len = 0;
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
char *dName = new char[ len + 1 ];
|
|
|
dName[ (int)len ] = 0;
|
|
|
if( len )
|
|
|
zKlient->getNachrichtEncrypted( dName, len );
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
char *bName = new char[ len + 1 ];
|
|
|
bName[ (int)len ] = 0;
|
|
|
if( len )
|
|
@@ -414,13 +414,13 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
case 0x6: // Bild erstellen
|
|
|
{
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- char len = 0;
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ unsigned char len = 0;
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
char *dName = new char[ len + 1 ];
|
|
|
dName[ (int)len ] = 0;
|
|
|
if( len )
|
|
|
zKlient->getNachrichtEncrypted( dName, len );
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
char *bName = new char[ len + 1 ];
|
|
|
bName[ (int)len ] = 0;
|
|
|
if( len )
|
|
@@ -497,8 +497,8 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
case 0x8: // Bild Liste herunterladen
|
|
|
{
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- char len = 0;
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ unsigned char len = 0;
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
char *name = new char[ len + 1 ];
|
|
|
name[ (int)len ] = 0;
|
|
|
if( len )
|
|
@@ -536,8 +536,8 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
case 0x9: // Modell Liste herunterladen
|
|
|
{
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- char len = 0;
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ unsigned char len = 0;
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
char *name = new char[ len + 1 ];
|
|
|
name[ (int)len ] = 0;
|
|
|
if( len )
|
|
@@ -575,8 +575,8 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
case 0xA: // Sound Liste herunterlaen
|
|
|
{
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- char len = 0;
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ unsigned char len = 0;
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
char *name = new char[ len + 1 ];
|
|
|
name[ (int)len ] = 0;
|
|
|
if( len )
|
|
@@ -632,8 +632,8 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
case 0xB: // Modell remove
|
|
|
{
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- char len = 0;
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ unsigned char len = 0;
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
char *name = new char[ len + 1 ];
|
|
|
name[ (int)len ] = 0;
|
|
|
if( len )
|
|
@@ -655,7 +655,7 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
return 0;
|
|
|
}
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
name = new char[ len + 1 ];
|
|
|
name[ (int)len ] = 0;
|
|
|
if( len )
|
|
@@ -685,8 +685,8 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
case 0xC: // Sound remove
|
|
|
{
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- char len = 0;
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ unsigned char len = 0;
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
char *name = new char[ len + 1 ];
|
|
|
name[ (int)len ] = 0;
|
|
|
if( len )
|
|
@@ -708,7 +708,7 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
return 0;
|
|
|
}
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
name = new char[ len + 1 ];
|
|
|
name[ (int)len ] = 0;
|
|
|
if( len )
|
|
@@ -747,8 +747,8 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
case 0xD: // Modell laden
|
|
|
{
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- char len = 0;
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ unsigned char len = 0;
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
char *name = new char[ len + 1 ];
|
|
|
name[ (int)len ] = 0;
|
|
|
if( len )
|
|
@@ -770,7 +770,7 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
return 0;
|
|
|
}
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
name = new char[ len + 1 ];
|
|
|
name[ (int)len ] = 0;
|
|
|
if( len )
|
|
@@ -817,8 +817,8 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
case 0xE: // Sound laden
|
|
|
{
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- char len = 0;
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ unsigned char len = 0;
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
char *name = new char[ len + 1 ];
|
|
|
name[ (int)len ] = 0;
|
|
|
if( len )
|
|
@@ -840,7 +840,7 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
return 0;
|
|
|
}
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
name = new char[ len + 1 ];
|
|
|
name[ (int)len ] = 0;
|
|
|
if( len )
|
|
@@ -898,8 +898,8 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
case 0xF: // Modell erstellen
|
|
|
{
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- char len = 0;
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ unsigned char len = 0;
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
char *name = new char[ len + 1 ];
|
|
|
name[ (int)len ] = 0;
|
|
|
if( len )
|
|
@@ -921,7 +921,7 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
return 0;
|
|
|
}
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
name = new char[ len + 1 ];
|
|
|
name[ (int)len ] = 0;
|
|
|
if( len )
|
|
@@ -948,8 +948,8 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
pol.vertex = new Array< Vertex >();
|
|
|
pol.tKordinaten = new Array< Vertex >();
|
|
|
zKlient->getNachrichtEncrypted( (char*)&pol.transparent, 1 );
|
|
|
- char nLen = 0;
|
|
|
- zKlient->getNachrichtEncrypted( &nLen, 1 );
|
|
|
+ unsigned char nLen = 0;
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&nLen, 1 );
|
|
|
char *txt = new char[ nLen + 1 ];
|
|
|
if( nLen )
|
|
|
zKlient->getNachrichtEncrypted( txt, nLen );
|
|
@@ -997,8 +997,8 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
case 0x10: // Sound erstellen
|
|
|
{
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- char len = 0;
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ unsigned char len = 0;
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
char *name = new char[ len + 1 ];
|
|
|
name[ (int)len ] = 0;
|
|
|
if( len )
|
|
@@ -1020,7 +1020,7 @@ bool DateienEditor::prozessMessage( SKlient *zKlient )
|
|
|
return 0;
|
|
|
}
|
|
|
zKlient->sendeEncrypted( "\1", 1 );
|
|
|
- zKlient->getNachrichtEncrypted( &len, 1 );
|
|
|
+ zKlient->getNachrichtEncrypted( (char*)&len, 1 );
|
|
|
name = new char[ len + 1 ];
|
|
|
name[ (int)len ] = 0;
|
|
|
if( len )
|