Skip to content

Commit 3ff8261

Browse files
committed
yaml modifier: increase full path buffer size to avoid snprintf warnings
1 parent a84cc13 commit 3ff8261

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/yaml_modifier.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ static void update_context(openli_yaml_context_t *ctx, const char *line,
332332
static bool path_matches(const char *current_path, const char *key,
333333
const char *target_path) {
334334

335-
char full_path[OPENLI_YAML_MAX_KEY_LENGTH * 2];
335+
char full_path[OPENLI_YAML_MAX_KEY_LENGTH * 4];
336336
if (current_path[0] != '\0') {
337337
snprintf(full_path, sizeof(full_path), "%s.%s", current_path, key);
338338
} else {

0 commit comments

Comments
 (0)