From d64c06c317d7876fa61fba4161336c18e0c0319b Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Tue, 25 Aug 2009 20:34:52 +0200 Subject: [PATCH] Fix format security warnings Don't just directly print strings of unknown content; use "%s". --- poppler/GfxState.cc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc index 6dc9221..bdfc0e5 100644 --- a/poppler/GfxState.cc +++ b/poppler/GfxState.cc @@ -301,7 +301,7 @@ cmsHPROFILE loadColorProfile(const char *fileName) static int CMSError(int ecode, const char *msg) { - error(-1,const_cast(msg)); + error(-1,"%s",const_cast(msg)); return 1; } -- 1.6.2.2.471.g6da14