diff options
author | Mart Raudsepp <leio@gentoo.org> | 2011-03-12 22:17:19 +0200 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2011-03-12 22:20:38 +0200 |
commit | 4fd7500bb16b80ea9aee8dc61c5b11e9deb8281f (patch) | |
tree | 4722be43f58af87e8c9ad1f6af6cd10b896ea4ae /src/gx_randr.c | |
parent | 1a23956758d17a8b4c1d8acebf8acc94358c37b9 (diff) |
Fix parameter ordering for calloc/xnfcalloc calls
First argument is the number of elements and second the size of one
element, not vice-versa.
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
Diffstat (limited to 'src/gx_randr.c')
-rw-r--r-- | src/gx_randr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gx_randr.c b/src/gx_randr.c index 345eaa5..116678d 100644 --- a/src/gx_randr.c +++ b/src/gx_randr.c @@ -351,7 +351,7 @@ GXRandRInit(ScreenPtr pScreen, int rotation) return FALSE; #endif - pRandr = calloc(sizeof(XF86RandRInfoRec), 1); + pRandr = calloc(1, sizeof(XF86RandRInfoRec)); if (pRandr == NULL) return FALSE; |