diff options
author | Javier <maemo@javispedro.com> | 2014-05-20 02:02:49 +0200 |
---|---|---|
committer | Javier <maemo@javispedro.com> | 2014-05-20 02:02:49 +0200 |
commit | 716e886d437386fc0bc9d0d61f178a23587c6e1f (patch) | |
tree | 44998aff6cf56e51b737f47d059f806f79152951 /gatoattclient.cpp | |
parent | e0677f561465615d84ca81b48955dbf8e169e02e (diff) | |
download | libgato-716e886d437386fc0bc9d0d61f178a23587c6e1f.tar.gz libgato-716e886d437386fc0bc9d0d61f178a23587c6e1f.zip |
fix unintended size in output
Diffstat (limited to 'gatoattclient.cpp')
-rw-r--r-- | gatoattclient.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gatoattclient.cpp b/gatoattclient.cpp index 54e2212..6cf6d69 100644 --- a/gatoattclient.cpp +++ b/gatoattclient.cpp @@ -184,7 +184,8 @@ uint GatoAttClient::requestReadByType(GatoHandle start, GatoHandle end, const Ga QByteArray data; QDataStream s(&data, QIODevice::WriteOnly); s.setByteOrder(QDataStream::LittleEndian); - s << start << end << gatouuid_to_bytearray(uuid, true, false); + s << start << end; + write_gatouuid(s, uuid, true, false); return request(AttOpReadByTypeRequest, data, receiver, member); } @@ -204,7 +205,8 @@ uint GatoAttClient::requestReadByGroupType(GatoHandle start, GatoHandle end, con QByteArray data; QDataStream s(&data, QIODevice::WriteOnly); s.setByteOrder(QDataStream::LittleEndian); - s << start << end << gatouuid_to_bytearray(uuid, true, false); + s << start << end; + write_gatouuid(s, uuid, true, false); return request(AttOpReadByGroupTypeRequest, data, receiver, member); } |