Fixed size in realloc
authorSam Lantinga <slouken@libsdl.org>
Wed, 11 Oct 2017 13:26:58 -0700
changeset 115977ee20a756f96
parent 11596 9d8ea0382c52
child 11598 6fde74294cc9
Fixed size in realloc
src/events/SDL_events.c
     1.1 --- a/src/events/SDL_events.c	Wed Oct 11 12:07:43 2017 -0400
     1.2 +++ b/src/events/SDL_events.c	Wed Oct 11 13:26:58 2017 -0700
     1.3 @@ -799,7 +799,7 @@
     1.4      if (!SDL_event_watchers_lock || SDL_LockMutex(SDL_event_watchers_lock) == 0) {
     1.5          SDL_EventWatcher *event_watchers;
     1.6  
     1.7 -        event_watchers = SDL_realloc(SDL_event_watchers, (SDL_event_watchers_count + 1) * sizeof(event_watchers));
     1.8 +        event_watchers = SDL_realloc(SDL_event_watchers, (SDL_event_watchers_count + 1) * sizeof(*event_watchers));
     1.9          if (event_watchers) {
    1.10              SDL_EventWatcher *watcher;
    1.11