summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Cabral <cabral@conectiva.com.br>2011-03-31 19:47:01 +0200
committerPetr Mladek <pmladek@suse.cz>2011-03-31 19:47:01 +0200
commit1ba31530f2fa0ed392ebf7a411ced9a158b2736d (patch)
tree360d7dd674a4d9cec17ffb240c60f957f6b5c221
parent89fe057d37b923d7d422e00159ea80c46d63bb82 (diff)
buildfix-fmtargs.diff: sprintf arguments cleanup
-rw-r--r--icc/SampleICC-1.3.2-fmtargs.patch20
-rw-r--r--icc/makefile.mk4
2 files changed, 23 insertions, 1 deletions
diff --git a/icc/SampleICC-1.3.2-fmtargs.patch b/icc/SampleICC-1.3.2-fmtargs.patch
new file mode 100644
index 0000000..a7549a8
--- /dev/null
+++ b/icc/SampleICC-1.3.2-fmtargs.patch
@@ -0,0 +1,20 @@
+--- misc/SampleICC-1.3.2/IccProfLib/IccProfile.cpp 2009-01-20 11:48:36.000000000 -0500
++++ misc/build/SampleICC-1.3.2/IccProfLib/IccProfile.cpp 2009-01-19 14:41:23.000000000 -0500
+@@ -1155,7 +1155,7 @@
+
+ CIccInfo Info;
+ icChar buf[128];
+- sprintf(buf, Info.GetSigName(m_Header.deviceClass));
++ sprintf(buf, "%s", Info.GetSigName(m_Header.deviceClass));
+ if (m_Header.deviceClass!=icSigInputClass && m_Header.deviceClass!=icSigDisplayClass) {
+ if (GetTag(icSigGrayTRCTag) || GetTag(icSigRedTRCTag) || GetTag(icSigGreenTRCTag) ||
+ GetTag(icSigBlueTRCTag) || GetTag(icSigRedColorantTag) || GetTag(icSigGreenColorantTag) ||
+@@ -1230,7 +1230,7 @@
+ for (i=m_Tags->begin(); i!=m_Tags->end(); i++) {
+ tagsig = i->TagInfo.sig;
+ typesig = i->pTag->GetType();
+- sprintf(buf, Info.GetSigName(tagsig));
++ sprintf(buf, "%s", Info.GetSigName(tagsig));
+ if (!IsTypeValid(tagsig, typesig)) {
+ sReport += icValidateNonCompliantMsg;
+ sReport += buf;
diff --git a/icc/makefile.mk b/icc/makefile.mk
index 87ebf3a..4bbde85 100644
--- a/icc/makefile.mk
+++ b/icc/makefile.mk
@@ -38,7 +38,9 @@ TARGET=icc
TARFILE_NAME=SampleICC-1.3.2
TARFILE_MD5=fdb27bfe2dbe2e7b57ae194d9bf36bab
-PATCH_FILES=$(TARFILE_NAME).patch
+PATCH_FILES= \
+ $(TARFILE_NAME).patch \
+ $(TARFILE_NAME)-fmtargs.patch
CONVERTFILES= \
IccProfLib$/IccTagProfSeqId.h \