From 2f1b943bb3da4f563516bde9663e5589565beee2 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sat, 6 Jan 2018 01:45:16 +0000 Subject: [PATCH] syscall.c: use xsprintf instead of sprintf * syscall.c: Include "xstring.h". (get_scno): Replace sprintf with xsprintf. --- syscall.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syscall.c b/syscall.c index 0ca32abd..14c0ea18 100644 --- a/syscall.c +++ b/syscall.c @@ -59,6 +59,7 @@ #endif #include "syscall.h" +#include "xstring.h" /* Define these shorthand notations to simplify the syscallent files. */ #include "sysent_shorthand_defs.h" @@ -1203,7 +1204,7 @@ get_scno(struct tcb *tcp) s->ent.sen = SEN_printargs; s->ent.sys_func = printargs; s->ent.sys_name = s->buf; - sprintf(s->buf, "syscall_%" PRI_klu, shuffle_scno(tcp->scno)); + xsprintf(s->buf, "syscall_%" PRI_klu, shuffle_scno(tcp->scno)); tcp->s_ent = &s->ent; tcp->qual_flg = QUAL_RAW | DEFAULT_QUAL_FLAGS; -- 2.40.0