aboutsummaryrefslogtreecommitdiff
path: root/src/wydawca.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-10 20:40:52 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-05-10 20:40:52 +0300
commit9e81fa8a01af87ce85b5dd0b19e3d621b46b3be8 (patch)
tree093882260404a82337c138b5eefe414aa41f40e4 /src/wydawca.c
parent3bf61e7ab82244cdeb00c6ba6d602d3cad9b64d4 (diff)
downloadwydawca-9e81fa8a01af87ce85b5dd0b19e3d621b46b3be8.tar.gz
wydawca-9e81fa8a01af87ce85b5dd0b19e3d621b46b3be8.tar.bz2
Remove inttostr module.
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
@@ -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.