aboutsummaryrefslogtreecommitdiffstats
path: root/libaxl_send_request.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-06-19 16:54:54 +0200
committerMattias Andrée <maandree@kth.se>2020-06-19 16:54:54 +0200
commit755b5086e8a5c50328a1bbccc499058f5f87cc47 (patch)
tree51ebedbcc6c39a0bfc06eb913d7f4f0fd5c65d6f /libaxl_send_request.c
parentFix libaxl_receive (diff)
downloadlibaxl-755b5086e8a5c50328a1bbccc499058f5f87cc47.tar.gz
libaxl-755b5086e8a5c50328a1bbccc499058f5f87cc47.tar.bz2
libaxl-755b5086e8a5c50328a1bbccc499058f5f87cc47.tar.xz
Minor fixes
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libaxl_send_request.c')
-rw-r--r--libaxl_send_request.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libaxl_send_request.c b/libaxl_send_request.c
index 7172cdf..4e795da 100644
--- a/libaxl_send_request.c
+++ b/libaxl_send_request.c
@@ -28,7 +28,7 @@ static const char *const req_formats[] = {
* the length field and will be filled in by the function
*/
[LIBAXL_REQUEST_CREATE_WINDOW] = "11,44ss222244|4444111.44!!,4444",
- [LIBAXL_REQUEST_CHANGE_WINDOW_ATTRIBUTES] = "1_44|4444111.44111.44!!,4444",
+ [LIBAXL_REQUEST_CHANGE_WINDOW_ATTRIBUTES] = "1_44|4444111.44!!,4444",
[LIBAXL_REQUEST_GET_WINDOW_ATTRIBUTES] = "1_4",
[LIBAXL_REQUEST_DESTROY_WINDOW] = "1_4",
[LIBAXL_REQUEST_DESTROY_SUBWINDOWS] = "1_4",
@@ -436,7 +436,7 @@ again:
case '4':
case 'S':
if (mask & 1) {
- u32 = *(const uint16_t *)&req[i];
+ u32 = *(const uint32_t *)&req[i];
if (*fmt == 'S')
TWOS_COMPLEMENT32(&u32);
*(uint32_t *)&buf[o] = htonl(u32);