summaryrefslogtreecommitdiffabout
path: root/src/wydawca.c
Side-by-side diff
Diffstat (limited to 'src/wydawca.c') (more/less context) (ignore whitespace changes)
-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
@@ -175,8 +175,11 @@ stat_mask_p (unsigned long mask)
static const char *
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 def->value;
}

Return to:

Send suggestions and report system problems to the System administrator.