From 2d35ea8d957a955e1200ba2b14424bddfe1f4148 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 3 Jul 2009 16:50:03 +1000 Subject: dix: switch to byte-counting functions. Signed-off-by: Peter Hutterer --- dix/extension.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dix/extension.c') 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); -- cgit v1.2.3