alpha.c: use xsprintf instead of snprintf

* alpha.c: Include "xstring.h".
(decode_getxxid): Replace snprintf with xsprintf.
This commit is contained in:
Дмитрий Левин 2018-01-06 01:45:16 +00:00
parent edf6792d2a
commit 1d6274afb4

View File

@ -29,6 +29,8 @@
#ifdef ALPHA
# include "xstring.h"
static int
decode_getxxid(struct tcb *tcp, const char *what)
{
@ -40,7 +42,7 @@ decode_getxxid(struct tcb *tcp, const char *what)
return 0;
static const char const fmt[] = "%s %ld";
static char outstr[sizeof(fmt) + 3 * sizeof(rval)];
snprintf(outstr, sizeof(outstr), fmt, what, rval);
xsprintf(outstr, fmt, what, rval);
tcp->auxstr = outstr;
return RVAL_STR;
}