diff options
Diffstat (limited to 'src/wydawca.c')
-rw-r--r-- | src/wydawca.c | 7 |
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) | |||
175 | static const char * | 175 | static const char * |
176 | stat_expand (struct metadef *def, void *data) | 176 | stat_expand (struct metadef *def, void *data) |
177 | { | 177 | { |
178 | char sbuf[INT_BUFSIZE_BOUND (wydawca_stat[0])]; | 178 | size_t size = 0; |
179 | def->storage = xstrdup (uinttostr (wydawca_stat[(int) def->data], sbuf)); | 179 | def->storage = NULL; |
180 | if (grecs_asprintf (&def->storage, &size, "%u", | ||
181 | wydawca_stat[(int) def->data])) | ||
182 | xalloc_die (); | ||
180 | def->value = def->storage; | 183 | def->value = def->storage; |
181 | return def->value; | 184 | return def->value; |
182 | } | 185 | } |