Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Can't believe I missed this typo.
  • Loading branch information
bobbens committed Jul 18, 2008
1 parent 9f36fd0 commit 9bcef5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/haptic/darwin/SDL_syshaptic.c
Expand Up @@ -341,7 +341,7 @@ SDL_SYS_HapticQuit(void)
* 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;

Expand All @@ -352,12 +352,12 @@ SDL_SYS_SetDirection( FFEFFECT * effect, SDL_HapticDirection *dir, int axes )
}

/* 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) {
Expand Down

0 comments on commit 9bcef5d

Please sign in to comment.