From 0f38b850c2970f72bff7caed158fbb1c80ad5bfb Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 23 Apr 2019 11:12:43 +0200 Subject: [PATCH] ole32/tests: Avoid using snprintf(). Signed-off-by: Alexandre Julliard --- dlls/ole32/tests/clipboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ole32/tests/clipboard.c b/dlls/ole32/tests/clipboard.c index d43bbf3f87c..8901758034c 100644 --- a/dlls/ole32/tests/clipboard.c +++ b/dlls/ole32/tests/clipboard.c @@ -44,7 +44,7 @@ static inline char *dump_fmtetc(FORMATETC *fmt) { static char buf[100]; - snprintf(buf, sizeof(buf), "cf %04x ptd %p aspect %x lindex %d tymed %x", + sprintf(buf, "cf %04x ptd %p aspect %x lindex %d tymed %x", fmt->cfFormat, fmt->ptd, fmt->dwAspect, fmt->lindex, fmt->tymed); return buf; }