Package: nxcomp
Version: 3.2.0-7-1
Severity: normal
Tags: patch

Hi,

thanks for maintaining nxcomp.

During Ubuntu's rebuild test, nxcomp failed to build [1] due to changed
signatures of the c++ string functions.

Attached is a patch to fix it.

Cheers,
   Stefan.
[1]:
<http://launchpadlibrarian.net/31955006/buildlog_ubuntu-karmic-amd64.nxcomp_3.2.0-7-1_FAILEDTOBUILD.txt.gz>

-- System Information:
Debian Release: squeeze/sid
  APT prefers karmic-updates
  APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 'karmic')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-10-generic (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Index: nxcomp-3.2.0-7/Loop.cpp
===================================================================
--- nxcomp-3.2.0-7.orig/Loop.cpp	2009-09-26 16:54:36.000000000 +0200
+++ nxcomp-3.2.0-7/Loop.cpp	2009-09-26 16:54:16.000000000 +0200
@@ -10979,7 +10979,7 @@
                                       packMethod == PACK_LOSSLESS ||
                                           packMethod == PACK_ADAPTIVE)
   {
-    char *dash = rindex(opt, '-');
+    const char *dash = rindex(opt, '-');
 
     if (dash != NULL && strlen(dash) == 2 &&
             *(dash + 1) >= '0' && *(dash + 1) <= '9')

Reply via email to