aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2024-10-29 13:15:22 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2024-10-29 13:15:22 +0100
commit263210690660c9369743ea219eede29c23655186 (patch)
treef5e173d395adc8a14be80f577b83c6a3caf3da20
parent879bc73d2aacc5784611a0def46e598bfc8e0f84 (diff)
downloadgnunet-263210690660c9369743ea219eede29c23655186.tar.gz
gnunet-263210690660c9369743ea219eede29c23655186.zip
util: Do not use vsprintf internally. Fixes #9286
-rw-r--r--src/lib/util/common_allocation.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/util/common_allocation.c b/src/lib/util/common_allocation.c
index f610430da..8a2b4261d 100644
--- a/src/lib/util/common_allocation.c
+++ b/src/lib/util/common_allocation.c
@@ -326,9 +326,10 @@ GNUNET_asprintf (char **buf,
326 GNUNET_assert (ret >= 0); 326 GNUNET_assert (ret >= 0);
327 *buf = GNUNET_malloc (ret + 1); 327 *buf = GNUNET_malloc (ret + 1);
328 va_start (args, format); 328 va_start (args, format);
329 ret = vsprintf (*buf, 329 ret = vsnprintf (*buf,
330 format, 330 ret + 1,
331 args); 331 format,
332 args);
332 va_end (args); 333 va_end (args);
333 return ret; 334 return ret;
334} 335}