From 946bde4a62fa9c4c47315defb2e31cf54d821246 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 26 Jan 2011 22:23:30 +0000 Subject: Patch a few buffer overrun problems and odd crash potentials git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1217371 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- dcop/client/marshall.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dcop/client/marshall.cpp') diff --git a/dcop/client/marshall.cpp b/dcop/client/marshall.cpp index 496880aad..27a73495b 100644 --- a/dcop/client/marshall.cpp +++ b/dcop/client/marshall.cpp @@ -177,7 +177,7 @@ TQCString demarshal( TQDataStream &stream, const TQString &type ) TQBuffer buf( ba ); buf.open( IO_WriteOnly ); i.save( &buf, "XPM" ); - result = ba; + result = buf.buffer(); } else if ( type == "TQPoint" ) { TQPoint p; -- cgit v1.2.3