Skip to content

Commit

Permalink
Fixed size in realloc
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 11, 2017
1 parent 5e5f229 commit b53c35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/SDL_events.c
Expand Up @@ -799,7 +799,7 @@ SDL_AddEventWatch(SDL_EventFilter filter, void *userdata)
if (!SDL_event_watchers_lock || SDL_LockMutex(SDL_event_watchers_lock) == 0) {
SDL_EventWatcher *event_watchers;

event_watchers = SDL_realloc(SDL_event_watchers, (SDL_event_watchers_count + 1) * sizeof(event_watchers));
event_watchers = SDL_realloc(SDL_event_watchers, (SDL_event_watchers_count + 1) * sizeof(*event_watchers));
if (event_watchers) {
SDL_EventWatcher *watcher;

Expand Down

0 comments on commit b53c35d

Please sign in to comment.