From ed2c2cf0eba3d607bf910ff06adc1e2396e99634 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 22 Dec 2016 21:03:12 +0000 Subject: [PATCH] Pointers have no sign. --- graphics/cinepaint/distinfo | 3 ++- ..._examin_icc__examin_icc__profile__tags.cpp | 21 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 graphics/cinepaint/patches/patch-plug-ins_icc__examin_icc__examin_icc__profile__tags.cpp diff --git a/graphics/cinepaint/distinfo b/graphics/cinepaint/distinfo index ecc68b8d0d81..d94c9ae59bb2 100644 --- a/graphics/cinepaint/distinfo +++ b/graphics/cinepaint/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.21 2015/11/03 21:33:54 agc Exp $ +$NetBSD: distinfo,v 1.22 2016/12/22 21:03:12 joerg Exp $ SHA1 (cinepaint-0.22-1.tar.gz) = 717580b9b8b1044d76f1f0e4330e1c8104e2a206 RMD160 (cinepaint-0.22-1.tar.gz) = 1f8e06486ed5e74ad483abec305d4fcef0538572 @@ -20,6 +20,7 @@ SHA1 (patch-plug-ins_icc__examin_icc__examin_icc__examin.h) = eb4dba58efd6ff19c5 SHA1 (patch-plug-ins_icc__examin_icc__examin_icc__modell__beobachter.cpp) = 0aad88391642a9bacafee8e39116a98c7523d815 SHA1 (patch-plug-ins_icc__examin_icc__examin_icc__oyranos.h) = a5a72d106b655f79932b0d2d032136a32acbeafb SHA1 (patch-plug-ins_icc__examin_icc__examin_icc__oyranos__extern.cpp) = 2e733a0c557236a735b97a7174795965b4bd4e0c +SHA1 (patch-plug-ins_icc__examin_icc__examin_icc__profile__tags.cpp) = f590691012f832d8dd19ca62f70f241601d84807 SHA1 (patch-plug-ins_icc__examin_icc__examin_icc__speicher.h) = 1eef5be81fe36c2eb9ecf50606ecb294644e15f4 SHA1 (patch-plug-ins_icc__examin_icc__examin_icc__thread__daten.cpp) = 66398aa3b06cc65017ec957e36579accd82df117 SHA1 (patch-plug-ins_pdf_pdf.cpp) = e0af79a6f2e8962edc90d53ceef1b521aacb8e55 diff --git a/graphics/cinepaint/patches/patch-plug-ins_icc__examin_icc__examin_icc__profile__tags.cpp b/graphics/cinepaint/patches/patch-plug-ins_icc__examin_icc__examin_icc__profile__tags.cpp new file mode 100644 index 000000000000..3d7328018611 --- /dev/null +++ b/graphics/cinepaint/patches/patch-plug-ins_icc__examin_icc__examin_icc__profile__tags.cpp @@ -0,0 +1,21 @@ +$NetBSD: patch-plug-ins_icc__examin_icc__examin_icc__profile__tags.cpp,v 1.1 2016/12/22 21:03:12 joerg Exp $ + +Pointers have no sign. + +--- plug-ins/icc_examin/icc_examin/icc_profile_tags.cpp.orig 2016-12-22 13:23:55.102285480 +0000 ++++ plug-ins/icc_examin/icc_examin/icc_profile_tags.cpp +@@ -332,12 +332,12 @@ ICCtag::getText (voi + # ifdef DEBUG_ICCTAG + DBG_NUM_S ((int)strchr(txt, 13)) + # endif +- while (strchr(txt, 13) > 0) { // \r 013 0x0d ++ while (strchr(txt, 13)) { // \r 013 0x0d + pos = strchr(txt, 13); + # ifdef DEBUG_ICCTAG + //cout << (int)pos << " "; DBG + # endif +- if (pos > 0) { ++ if (pos) { + if (*(pos+1) == '\n') + *pos = ' '; + else