Package: cwidget
Version: 0.5.12-4
Severity: normal
Tags: patch

Hello,

during a rebuild test in Ubuntu, cwidget (0.5.12-4ubuntu2) failed to
build with the following error (g++-4.4 4.4.1-3ubuntu3):

,----
| fragment.cc: In function 'cwidget::fragment* cwidget::fragf(const char*, 
...)':
| fragment.cc:1348: error: invalid conversion from 'const char*' to 'char*'
| fragment.cc:1410: error: invalid conversion from 'const char*' to 'char*'
| fragment.cc:1421: error: invalid conversion from 'const char*' to 'char*'
| fragment.cc:1489: error: invalid conversion from 'const char*' to 'char*'
| fragment.cc:1524: error: invalid conversion from 'const char*' to 'char*'
| fragment.cc:1683: error: invalid conversion from 'const char*' to 'char*'
`----
http://launchpadlibrarian.net/31610844/buildlog_ubuntu-karmic-amd64.cwidget_0.5.12-4ubuntu2_FAILEDTOBUILD.txt.gz

At the end of this mail is a patch to fix this. From a look at cwidget 0.5.13 I
assume it will fail with the same error too (didn't check yet) as it
contains the same code.

Regards,
Michael

diff -u cwidget-0.5.12/src/cwidget/fragment.cc 
cwidget-0.5.12/src/cwidget/fragment.cc
--- cwidget-0.5.12/src/cwidget/fragment.cc
+++ cwidget-0.5.12/src/cwidget/fragment.cc
@@ -1345,7 +1345,7 @@
 
     const char *start=format;
     // find all the arguments.
-    char *nextpercent=strchr(start, '%');
+    const char *nextpercent=strchr(start, '%');
 
     // loop 1: count the arguments.
     while(nextpercent!=NULL)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to