Skip to content

Commit

Permalink
correct termination of windows openfiledialog filters
Browse files Browse the repository at this point in the history
  • Loading branch information
lunasorcery authored and slouken committed Dec 25, 2024
1 parent 0becdad commit b7dac50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dialog/SDL_dialog_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ char *convert_filters(const SDL_DialogFileFilter *filters, int nfilters,
return NULL;
}

terminator = f[1].name ? separator : suffix;
terminator = ((i + 1) < nfilters) ? separator : suffix;
new_length = SDL_strlen(combined) + SDL_strlen(converted)
+ SDL_strlen(terminator) + 1;

Expand Down

0 comments on commit b7dac50

Please sign in to comment.