Skip to content

Commit 8c17df0

Browse files
cpqcesantabot
authored andcommitted
CL: frozen/pull/27 - fix json_setf PUBLISHED_FROM=95704b536b9d2c5c8af1c2eda529053334af617d
1 parent c9d76ac commit 8c17df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frozen/frozen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ int json_vsetf(const char *s, int len, struct json_out *out,
12251225
json_printf(out, ",");
12261226
}
12271227
if (off > 0 && json_path[off - 1] != '.') break;
1228-
json_printf(out, "%.*Q:", 1, json_path + off);
1228+
json_printf(out, "%.*Q:", n, json_path + off);
12291229
off += n;
12301230
if (json_path[off] != '\0') {
12311231
json_printf(out, "%c", json_path[off] == '.' ? '{' : '[');

0 commit comments

Comments
 (0)