Skip to content

Commit

Permalink
Support MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
cristeigabriel committed May 12, 2023
1 parent 3b22d23 commit 0be1999
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ _build/*
build-dir
.flatpak-builder
result
aprilv0_en-us.april
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ subdir('po')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
update_desktop_database: false,
)
4 changes: 2 additions & 2 deletions src/history.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ void history_init(void){

static struct history_entry *allocate_new_entry(size_t tokens_count) {
active_session.entries_count += 1;
active_session.entries = reallocarray(active_session.entries,
active_session.entries_count, sizeof(struct history_entry));
active_session.entries = realloc(active_session.entries,
active_session.entries_count * sizeof(struct history_entry));

struct history_entry *entry = &active_session.entries[active_session.entries_count - 1];

Expand Down
1 change: 1 addition & 0 deletions src/livecaptions-history-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ static void add_session(LiveCaptionsHistoryWindow *self, const struct history_se

FilterMode filter_mode = filter_profanity ? FILTER_PROFANITY : (filter_slurs ? FILTER_SLURS : FILTER_NONE);
struct token_capitalizer tcap;
extern void token_capitalizer_init(struct token_capitalizer *tc);
token_capitalizer_init(&tcap);

for(size_t i_1=0; i_1<session->entries_count; i_1++){
Expand Down

0 comments on commit 0be1999

Please sign in to comment.