From e6201c3eb1e0dc5a495517f6c6bc77065ec45be8 Mon Sep 17 00:00:00 2001 From: Philippe Waroquiers Date: Mon, 16 Jun 2014 21:25:31 +0000 Subject: [PATCH] Use a string literal format to avoid a gcc warning (-Wformat-security) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14047 --- coregrind/m_debuginfo/debuginfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coregrind/m_debuginfo/debuginfo.c b/coregrind/m_debuginfo/debuginfo.c index 571e2c42d8..9a6f6c27ee 100644 --- a/coregrind/m_debuginfo/debuginfo.c +++ b/coregrind/m_debuginfo/debuginfo.c @@ -2112,7 +2112,7 @@ HChar* VG_(describe_IP)(Addr eip, HChar* buf, Int n_buf, InlIPCursor *iipc) : NULL; vg_assert (cur_inl); // The filename and lineno for the inlined fn caller is in cur_inl. - VG_(snprintf) (buf_srcloc, BUF_LEN, cur_inl->filename); + VG_(snprintf) (buf_srcloc, BUF_LEN, "%s", cur_inl->filename); lineno = cur_inl->lineno; know_dirinfo = False; //INLINED TBD -- 2.47.3