argyllcms/argyllcms-1.4.0-warnings.patch
Klaus Kämpf 72b76c2b56 Accepting request 125962 from home:fcrozat:branches:multimedia:color_management
- Release 1.4.0:
  + various bug fixes
  + add support for ICC profiles in embedded JPEG
  + fix CVE-2012-1616 (bnc#768322)
- drop autotools patches, switch back to original Jam based build
- add ajam (argyll patched version of Jam, BSD-license) to source
  package (needed only for build)
- drop shared libraries and corresponding subpackages, not used by
  anything.
- drop cologhug patch, merged upstream.
- Add argyllcms-fixbuild.patch: fix build with system tiff/jpeg
  libraries
- Add ajam-include.patch: add missing headers
- Add argyllcms-1.4.0-warnings.patch: fix gcc warnings
- Add bison as BuildRequires (needed to build ajam)
- Compile with -f-no-strict-aliasing to prevent potential issues
  with gcc 4.7

OBS-URL: https://build.opensuse.org/request/show/125962
OBS-URL: https://build.opensuse.org/package/show/multimedia:color_management/argyllcms?expand=0&rev=11
2012-06-25 11:30:24 +00:00

24 lines
854 B
Diff

diff -up Argyll_V1.4.0/gamut/maptest.c.warning Argyll_V1.4.0/gamut/maptest.c
--- Argyll_V1.4.0/gamut/maptest.c.warning 2012-06-22 18:03:25.113289700 +0200
+++ Argyll_V1.4.0/gamut/maptest.c 2012-06-22 18:10:57.615637380 +0200
@@ -99,7 +99,7 @@ main(int argc, char *argv[]) {
else if (argv[fa][1] == 'i' || argv[fa][1] == 'I') {
if (na == NULL) usage();
fa = nfa;
- strncpy(img_name,na,MAXNAMEL); img_name[MAXNAMEL] = '\000';
+ strncpy(img_name,na,MAXNAMEL); img_name[MAXNAMEL-1] = '\000';
}
else
diff -up Argyll_V1.4.0/jcnf/test.c.warning Argyll_V1.4.0/jcnf/test.c
--- Argyll_V1.4.0/jcnf/test.c.warning 2012-06-22 18:02:57.401148828 +0200
+++ Argyll_V1.4.0/jcnf/test.c 2012-06-22 18:03:11.177723389 +0200
@@ -144,6 +144,7 @@ main(int argc, char *argv[]) {
jco->del(jco);
printf("We're done\n");
+ return 0;
}
void