From bf75193a3f0ab1fa01e579ea59df75419db26b61 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 10 Jan 2021 23:09:43 +0100 Subject: Fix potential blank node ID truncation --- src/sratom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sratom.c') diff --git a/src/sratom.c b/src/sratom.c index df74338..b0a0aa4 100644 --- a/src/sratom.c +++ b/src/sratom.c @@ -140,7 +140,7 @@ sratom_set_object_mode(Sratom* sratom, SratomObjectMode object_mode) static void gensym(SerdNode* out, char c, unsigned num) { - out->n_bytes = out->n_chars = snprintf((char*)out->buf, 10, "%c%u", c, num); + out->n_bytes = out->n_chars = snprintf((char*)out->buf, 12, "%c%u", c, num); } static void -- cgit v1.2.1