We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af5d02a commit a3a8cf2Copy full SHA for a3a8cf2
ccan/ccan/json_out/json_out.c
@@ -9,7 +9,7 @@ struct json_out {
9
/* Callback if we reallocate. */
10
void (*move_cb)(struct json_out *jout, ptrdiff_t delta, void *arg);
11
void *cb_arg;
12
-
+
13
#ifdef CCAN_JSON_OUT_DEBUG
14
/* tal_arr of types ( or [ we're enclosed in. NULL if oom. */
15
char *wrapping;
@@ -246,7 +246,7 @@ bool json_out_addv(struct json_out *jout,
246
dst = mkroom(jout, fmtlen + 1 + (int)quote*2);
247
if (!dst)
248
goto out;
249
- vsprintf(dst + quote, fmt, ap2);
+ vsnprintf(dst + quote, fmtlen + 1, fmt, ap2);
250
}
251
252
0 commit comments