src/events/SDL_mouse.c
changeset 2725 6ce6d56b63bf
parent 2718 abacf2555bb4
child 2727 76c2fc9696ea
     1.1 --- a/src/events/SDL_mouse.c	Tue Aug 26 05:26:28 2008 +0000
     1.2 +++ b/src/events/SDL_mouse.c	Tue Aug 26 05:57:41 2008 +0000
     1.3 @@ -117,7 +117,7 @@
     1.4      length = 0;
     1.5      length = SDL_strlen(name);
     1.6      SDL_mice[index]->name = SDL_malloc((length + 2) * sizeof(char));
     1.7 -    SDL_strlcpy(SDL_mice[index]->name, name, length+1);
     1.8 +    SDL_strlcpy(SDL_mice[index]->name, name, length + 1);
     1.9      SDL_mice[index]->pressure_max = pressure_max;
    1.10      SDL_mice[index]->pressure_min = pressure_min;
    1.11      SDL_mice[index]->cursor_shown = SDL_TRUE;
    1.12 @@ -512,7 +512,7 @@
    1.13          mouse->buttonstate |= SDL_BUTTON(button);
    1.14          break;
    1.15      case SDL_RELEASED:
    1.16 -        if(!(mouse->buttonstate & SDL_BUTTON(button))) {
    1.17 +        if (!(mouse->buttonstate & SDL_BUTTON(button))) {
    1.18              /* Ignore this event, no state change */
    1.19              return 0;
    1.20          }