# HG changeset patch # User Edgar Simo # Date 1216368417 0 # Node ID e1d5d16e88a83c4073696bf9c0a6184abdbb74bb # Parent 50414589501ef95334bc08db55d0dacd9a86ec36 Can't believe I missed this typo. diff -r 50414589501e -r e1d5d16e88a8 src/haptic/darwin/SDL_syshaptic.c --- 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) {