summaryrefslogtreecommitdiff
path: root/src/websockets/qwebsocketprotocol_p.h
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2013-11-03 15:19:57 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-03 15:20:32 +0100
commit95824d40f257a9d21012b5d1951b36a1de88b4fd (patch)
tree10c701030c82680ffe5b281f975059b9e6b71db9 /src/websockets/qwebsocketprotocol_p.h
parenta4fe430cad228f9aa5c2a8a67aed8345a3cababd (diff)
downloadqtwebsockets-95824d40f257a9d21012b5d1951b36a1de88b4fd.tar.gz
Use alignment on 4-byte boundary for masking input
Change-Id: I8efea21179245e8d8ed8095c327aef69676e2e1a Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'src/websockets/qwebsocketprotocol_p.h')
-rw-r--r--src/websockets/qwebsocketprotocol_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/websockets/qwebsocketprotocol_p.h b/src/websockets/qwebsocketprotocol_p.h
index e775179..26411f7 100644
--- a/src/websockets/qwebsocketprotocol_p.h
+++ b/src/websockets/qwebsocketprotocol_p.h
@@ -67,7 +67,7 @@ inline bool isCloseCodeValid(int closeCode)
}
void Q_AUTOTEST_EXPORT mask(QByteArray *payload, quint32 maskingKey);
-void Q_AUTOTEST_EXPORT mask(char *payload, quint64 size, quint32 maskingKey);
+void Q_AUTOTEST_EXPORT mask(Q_DECL_ALIGN(4) char *payload, quint64 size, quint32 maskingKey);
} //end namespace QWebSocketProtocol
QT_END_NAMESPACE