Skip to content

Commit

Permalink
Fixed update bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ftrebien committed Mar 17, 2022
1 parent 9b0ea1f commit bdf7c81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rating.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ rating_action_rate_helper(DB_plugin_action_t *action, int ctx, int rating)
const char *dec = deadbeef->pl_find_meta_raw(it, ":DECODER");
char decoder_id[100];
if (dec) {
snprintf(decoder_id, sizeof(decoder_id), "%s\n", dec);
strncpy(decoder_id, dec, sizeof(decoder_id) - 1);
}
int match = it && dec;
deadbeef->pl_unlock();
Expand Down

0 comments on commit bdf7c81

Please sign in to comment.