From edf6792d2abfcc27561a8aeccbc6a3003b19e354 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sat, 6 Jan 2018 01:45:16 +0000 Subject: [PATCH] v4l2.c: use xsprintf instead of sprintf * v4l2.c: Include "xstring.h". (print_v4l2_create_buffers): Replace sprintf with xsprintf. --- v4l2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v4l2.c b/v4l2.c index 097b13ac..4a0cbdc4 100644 --- a/v4l2.c +++ b/v4l2.c @@ -58,6 +58,7 @@ typedef struct v4l2_standard struct_v4l2_standard; #include MPERS_DEFS #include "print_fields.h" +#include "xstring.h" /* some historical constants */ #ifndef V4L2_CID_HCENTER @@ -975,7 +976,7 @@ print_v4l2_create_buffers(struct tcb *const tcp, const kernel_ulong_t arg) if (syserror(tcp) || umove(tcp, arg, &b)) return RVAL_IOCTL_DECODED; - sprintf(outstr, fmt, b.index, b.count); + xsprintf(outstr, fmt, b.index, b.count); tcp->auxstr = outstr; return RVAL_IOCTL_DECODED | RVAL_STR; -- 2.40.0