summaryrefslogtreecommitdiffstats
path: root/src/sratom.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-01-10 23:09:43 +0100
committerDavid Robillard <d@drobilla.net>2021-01-11 13:34:42 +0100
commitbf75193a3f0ab1fa01e579ea59df75419db26b61 (patch)
tree2371b6b715f5f6e886910383a4d769772aabb451 /src/sratom.c
parent6891f9ebeb15799aa4242ee7d8e479241761d11a (diff)
downloadsratom-bf75193a3f0ab1fa01e579ea59df75419db26b61.tar.gz
sratom-bf75193a3f0ab1fa01e579ea59df75419db26b61.tar.bz2
sratom-bf75193a3f0ab1fa01e579ea59df75419db26b61.zip
Fix potential blank node ID truncation
Diffstat (limited to 'src/sratom.c')
-rw-r--r--src/sratom.c2
1 files changed, 1 insertions, 1 deletions
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