alpha.c: use xsprintf instead of snprintf
* alpha.c: Include "xstring.h". (decode_getxxid): Replace snprintf with xsprintf.
This commit is contained in:
parent
edf6792d2a
commit
1d6274afb4
4
alpha.c
4
alpha.c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user