diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-03 16:50:03 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-14 10:05:54 +1000 |
commit | 2d35ea8d957a955e1200ba2b14424bddfe1f4148 (patch) | |
tree | f06b6093ff6289b60fcfe6ab5aa72a8eb4d1c0e7 /dix/extension.c | |
parent | 7dd415aa6a3959f15276741db168ba264948ecfe (diff) |
dix: switch to byte-counting functions.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix/extension.c')
-rw-r--r-- | dix/extension.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/extension.c b/dix/extension.c index c768ccb84..fb83af148 100644 --- a/dix/extension.c +++ b/dix/extension.c @@ -324,7 +324,7 @@ ProcListExtensions(ClientPtr client) for (j = extensions[i]->num_aliases; --j >= 0;) total_length += strlen(extensions[i]->aliases[j]) + 1; } - reply.length = (total_length + 3) >> 2; + reply.length = bytes_to_int32(total_length); buffer = bufptr = xalloc(total_length); if (!buffer) return(BadAlloc); |