Package: pngnq
Version: 1.0-2
Severity: minor
I always get "There's no quantization method f" with option "-Q f".
Caused by macro expansion is not quoted. The following patch fixed it.
diff -urp pngnq-1.0.orig/src/pngnq.c pngnq-1.0/src/pngnq.c
--- pngnq-1.0.orig/src/pngnq.c 2010-03-14 15:46:26.000000000 +0800
+++ pngnq-1.0/src/pngnq.c 2010-03-14 15:47:15.000000000 +0800
@@ -174,7 +174,9 @@ int main(int argc, char** argv)
case 'Q':
if (optarg[0] == 'f') use_floyd = 1;
else if (optarg[0] == 'n') use_floyd = 0;
- else PNGNQ_WARNING("There's no quantization method %s\n",optarg);
+ else {
+ PNGNQ_WARNING("There's no quantization method %s\n",optarg);
+ }
break;
case 'd':
output_directory = optarg;
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-3-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=zh_CN.GBK (charmap=GBK)
Shell: /bin/sh linked to /bin/bash
Versions of packages pngnq depends on:
ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
ii libpng12-0 1.2.43-1 PNG library - runtime
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
pngnq recommends no packages.
pngnq suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]