Fix MCCP bug caused by improper buffer management.

It's a reference to a char pointer. The previous version didn't modify the
dirtyBuffer outside the function (it received a copy of it), this one
receives the memory address of the in_buffer variable and any modifications
are reflected outside the function.


On Thu, Aug 28, 2014 at 11:55 AM, Stephen Lyons <notifications@github.com>
wrote:

> In src/ctelnet.h:
>
> > @@ -145,7 +145,7 @@ public slots:
> >  private:
> >                        cTelnet(){}
> >      void              initStreamDecompressor();
> > -    int               decompressBuffer( char * dirtyBuffer, int length );
> > +    int               decompressBuffer( char *& in_buffer, int& length, char* out_buffer );
> >      void              reset();
> >      void              connectionFailed();
> >
>
> decompressBuffer( char *& in_buffer, int& length, char* out_buffer );
>
> That "*&" construct looks a bit weird to me, what does it mean?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Mudlet/Mudlet/pull/101/files#r16848782>.
>