[Libreoffice-commits] .: patches/dev300
Petr Mladek
pmladek at kemper.freedesktop.org
Thu Mar 31 10:48:57 PDT 2011
patches/dev300/apply | 5 --
patches/dev300/buildfix-fmtargs.diff | 68 -----------------------------------
2 files changed, 73 deletions(-)
New commits:
commit 2bbc55bb51356c562d2f6b57ce0ae46e51eeb138
Author: Petr Mladek <pmladek at suse.cz>
Date: Thu Mar 31 19:48:35 2011 +0200
pushed buildfix-fmtargs.diff into git
diff --git a/patches/dev300/apply b/patches/dev300/apply
index 78e6e96..4d4b056 100644
--- a/patches/dev300/apply
+++ b/patches/dev300/apply
@@ -205,8 +205,6 @@ speed-sal-fewer-lstats.diff, i#89730, jholesov
# for mixed font set
#FIXME src680: font_list_box_cjk.diff, i#73003, Fong Lin
-[ GCJ ]
-# Fixes that were not accepted up-stream, but are still useful
[ FixesNotForUpstream ]
# Make the scroll-wheel / page popup more sane
gui-sw-scroll.diff, i#20826, michael
@@ -215,9 +213,6 @@ gui-sw-scroll.diff, i#20826, michael
uses-vfs.diff, i#43504, michael
[ Fixes ]
-# printf arguments cleanup
-buildfix-fmtargs.diff, cabral
-
# use basic (advanced) shapes for rectangle/ellipse on draw/impress's toolbars. make shapes wrap words by default, n#171052, rodo
sd-toolbar-advanced-shapes.diff, n#171052, rodo
svx-shapes-default-word-wrap-enable.diff, n#171052, rodo
diff --git a/patches/dev300/buildfix-fmtargs.diff b/patches/dev300/buildfix-fmtargs.diff
deleted file mode 100644
index 2e03735..0000000
--- a/patches/dev300/buildfix-fmtargs.diff
+++ /dev/null
@@ -1,68 +0,0 @@
-diff --git extensions/source/logging/consolehandler.cxx extensions/source/logging/consolehandler.cxx
-index 2eff518..a280a9d 100644
---- extensions/source/logging/consolehandler.cxx
-+++ extensions/source/logging/consolehandler.cxx
-@@ -249,9 +249,9 @@ namespace logging
- return sal_False;
-
- if ( _rRecord.Level >= m_nThreshold )
-- fprintf( stderr, sEntry.getStr() );
-+ fprintf( stderr, "%s", sEntry.getStr() );
- else
-- fprintf( stdout, sEntry.getStr() );
-+ fprintf( stdout, "%s", sEntry.getStr() );
-
- return sal_True;
- }
-diff --git fpicker/source/unx/gnome/SalGtkFilePicker.cxx fpicker/source/unx/gnome/SalGtkFilePicker.cxx
-index 4b38593..3c11cc4 100644
---- fpicker/source/unx/gnome/SalGtkFilePicker.cxx
-+++ fpicker/source/unx/gnome/SalGtkFilePicker.cxx
-@@ -1058,7 +1058,7 @@ sal_Int16 SAL_CALL SalGtkFilePicker::execute() throw( uno::RuntimeException )
- GTK_DIALOG_MODAL,
- GTK_MESSAGE_QUESTION,
- GTK_BUTTONS_YES_NO,
-- OUStringToOString(
-+ "\"%s\"", OUStringToOString(
- aResProvider.getResString( FILE_PICKER_OVERWRITE ),
- RTL_TEXTENCODING_UTF8 ).getStr() );
-
-diff --git icc/makefile.mk icc/makefile.mk
-index 87ebf3a..4494fe5 100644
---- icc/makefile.mk
-+++ icc/makefile.mk
-@@ -46,7 +46,7 @@ CONVERTFILES= \
- Contrib$/ICC_utils$/Stubs.h \
- Contrib$/ICC_utils$/Vetters.cpp
-
--CONFIGURE_ACTION= $(GNUCOPY) -r $(BACK_PATH)..$/source$/create_sRGB_profile Contrib$/CmdLine && unzip -o $(BACK_PATH)..$/makefiles.zip
-+CONFIGURE_ACTION= $(GNUCOPY) -r $(BACK_PATH)..$/source$/create_sRGB_profile Contrib$/CmdLine && unzip -o $(BACK_PATH)..$/makefiles.zip && patch -p0 < $(BACK_PATH)..$/mdv-fmtargs-buildfix.patch
- BUILD_ACTION=dmake && cd Contrib$/CmdLine$/create_sRGB_profile && $(AUGMENT_LIBRARY_PATH) .$/create_sRGB_profile
-
- # --- Targets ------------------------------------------------------
-diff --git icc/mdv-fmtargs-buildfix.patch icc/mdv-fmtargs-buildfix.patch
-new file mode 100644
-index 0000000..5774e36
---- /dev/null
-+++ icc/mdv-fmtargs-buildfix.patch
-@@ -0,0 +1,20 @@
-+--- IccProfLib/IccProfile.cpp 2009-01-20 11:48:36.000000000 -0500
-++++ 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;
More information about the Libreoffice-commits
mailing list