Skip to content

Commit

Permalink
Format and test limited encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
ohler55 committed Jan 11, 2025
1 parent f53e3aa commit 81f5e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/ox/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ static void read_instruction(PInfo pi) {
if (0 == strcasecmp(a->name, "encoding")) {
strncpy(pi->options->encoding, a->value, sizeof(pi->options->encoding) - 1);
pi->options->encoding[sizeof(pi->options->encoding) - 1] = '\0';
pi->options->rb_enc = rb_enc_find(a->value);
pi->options->rb_enc = rb_enc_find(a->value);
break;
}
}
Expand Down

0 comments on commit 81f5e57

Please sign in to comment.