src/haptic/darwin/SDL_syshaptic.c
branchgsoc2008_force_feedback
changeset 2529 e1d5d16e88a8
parent 2528 50414589501e
child 2530 22ce87690b41
--- a/src/haptic/darwin/SDL_syshaptic.c	Fri Jul 18 08:06:06 2008 +0000
+++ b/src/haptic/darwin/SDL_syshaptic.c	Fri Jul 18 08:06:57 2008 +0000
@@ -341,7 +341,7 @@
  * Sets the direction.
  */
 static int
-SDL_SYS_SetDirection( FFEFFECT * effect, SDL_HapticDirection *dir, int axes )
+SDL_SYS_SetDirection( FFEFFECT * effect, SDL_HapticDirection *dir, int naxes )
 {
    LONG *rglDir;
 
@@ -352,12 +352,12 @@
    }
 
    /* Has axes. */
-   rglDir = SDL_malloc( sizeof(LONG) * axes );
+   rglDir = SDL_malloc( sizeof(LONG) * naxes );
    if (rglDir == NULL) {
       SDL_OutOfMemory();
       return -1;
    }
-   SDL_memset( rglDir, 0, sizeof(LONG) * axes );
+   SDL_memset( rglDir, 0, sizeof(LONG) * naxes );
    effect->rglDirection = rglDir;
 
    switch (dir->type) {