diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-04-27 14:23:39 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-04-27 14:23:39 +0200 |
commit | 9b94209f53782ecaf7084722ce90836573ceb86b (patch) | |
tree | 42354553aeeb29d9490a3120f0c5cd687cbad370 /nxcomp/src/ImageText8.cpp | |
parent | 91d9218c0cc659f40918af6ac6c035c6c48d2c6d (diff) | |
parent | 16f6803f1597788b3bebcfa15e8900d8420b54a4 (diff) | |
download | nx-libs-9b94209f53782ecaf7084722ce90836573ceb86b.tar.gz nx-libs-9b94209f53782ecaf7084722ce90836573ceb86b.tar.bz2 nx-libs-9b94209f53782ecaf7084722ce90836573ceb86b.zip |
Merge branch 'uli42-pr/various9' into 3.6.x
Attributes GH PR #1029: https://github.com/ArcticaProject/nx-libs/pull/1029
Diffstat (limited to 'nxcomp/src/ImageText8.cpp')
-rw-r--r-- | nxcomp/src/ImageText8.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nxcomp/src/ImageText8.cpp b/nxcomp/src/ImageText8.cpp index 61fcef825..25baa2db0 100644 --- a/nxcomp/src/ImageText8.cpp +++ b/nxcomp/src/ImageText8.cpp @@ -57,9 +57,9 @@ int ImageText8Store::parseIdentity(Message *message, const unsigned char *buffer // Here is the fingerprint. // - imageText8 -> len = *(buffer + 1); + imageText8 -> len = *(buffer + 1); - imageText8 -> drawable = GetULONG(buffer + 4, bigEndian); + imageText8 -> drawable = GetULONG(buffer + 4, bigEndian); imageText8 -> gcontext = GetULONG(buffer + 8, bigEndian); imageText8 -> x = GetUINT(buffer + 12, bigEndian); @@ -68,7 +68,7 @@ int ImageText8Store::parseIdentity(Message *message, const unsigned char *buffer if ((int) size > dataOffset) { int pad = (size - dataOffset) - imageText8 -> len; - + if (pad > 0) { CleanData((unsigned char *) buffer + size - pad, pad); @@ -113,8 +113,8 @@ void ImageText8Store::dumpIdentity(const Message *message) const ImageText8Message *imageText8 = (ImageText8Message *) message; *logofs << name() << ": Identity len " << (unsigned int) imageText8 -> len - << " drawable " << imageText8 -> drawable << ", gcontext " - << imageText8 -> gcontext << ", x " << imageText8 -> x << ", y " + << " drawable " << imageText8 -> drawable << ", gcontext " + << imageText8 -> gcontext << ", x " << imageText8 -> x << ", y " << imageText8 -> y << ", size " << imageText8 -> size_ << ".\n"; #endif |