diff options
-rw-r--r-- | src/XIHierarchy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XIHierarchy.c b/src/XIHierarchy.c index 39c3d1b..3d2b4f2 100644 --- a/src/XIHierarchy.c +++ b/src/XIHierarchy.c @@ -109,7 +109,7 @@ XIChangeHierarchy(Display* dpy, c->name_len = strlen(C->name); c->length = (sizeof(xXIAddMasterInfo) + c->name_len + 3)/4; strncpy((char*)&c[1], C->name, c->name_len); - dptr += c->length; + dptr += 4 * c->length; } break; case XIRemoveMaster: |