aboutsummaryrefslogtreecommitdiff
path: root/src/wydawca.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wydawca.c')
-rw-r--r--src/wydawca.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wydawca.c b/src/wydawca.c
index 12649d3..171b97b 100644
--- a/src/wydawca.c
+++ b/src/wydawca.c
@@ -177,4 +177,7 @@ stat_expand (struct metadef *def, void *data)
{
- char sbuf[INT_BUFSIZE_BOUND (wydawca_stat[0])];
- def->storage = xstrdup (uinttostr (wydawca_stat[(int) def->data], sbuf));
+ size_t size = 0;
+ def->storage = NULL;
+ if (grecs_asprintf (&def->storage, &size, "%u",
+ wydawca_stat[(int) def->data]))
+ xalloc_die ();
def->value = def->storage;

Return to:

Send suggestions and report system problems to the System administrator.