|
@@ -1131,9 +1131,13 @@ void PSAKlient::thread()
|
|
path[ len ] = 0;
|
|
path[ len ] = 0;
|
|
unsigned char l;
|
|
unsigned char l;
|
|
klient->getNachricht( (char *)& l, 1 );
|
|
klient->getNachricht( (char *)& l, 1 );
|
|
- char *time = new char[ l + 1 ];
|
|
|
|
- klient->getNachricht( time, l );
|
|
|
|
- time[ l ] = 0;
|
|
|
|
|
|
+ char *time = 0;
|
|
|
|
+ if( l > 0 )
|
|
|
|
+ {
|
|
|
|
+ time = new char[ l + 1 ];
|
|
|
|
+ klient->getNachricht( time, l );
|
|
|
|
+ time[ l ] = 0;
|
|
|
|
+ }
|
|
int system, gruppe;
|
|
int system, gruppe;
|
|
klient->getNachricht( (char *)& system, 4 );
|
|
klient->getNachricht( (char *)& system, 4 );
|
|
klient->getNachricht( (char *)& gruppe, 4 );
|
|
klient->getNachricht( (char *)& gruppe, 4 );
|