swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] FIX: two small format string buglets in png2swf.c and


From: Markus Fleck-Graffe
Subject: [Swftools-common] FIX: two small format string buglets in png2swf.c and swfcombine.c
Date: Thu, 24 Jan 2008 18:31:04 +0100
User-agent: Thunderbird 2.0.0.9 (X11/20071031)


"png2swf" output may become garbled:
> address@hidden:/swftools-2008-01-13-1038/src$ PATH=. png2swf
> Usage: [...]
> -s , --scale <percent>         Scale image to <percent>png2swfize.

To fix this, the literal "%" character should be quoted (as in "%%").
A quick grep found "png2swf.c" and "swfcombine.c" to be affeced.

See attached diff for fixes.

Yours,
MFG.

diff -U 1 png2swf.c png2swf.c
--- png2swf.c   2008-01-24 18:05:09.107279665 +0100
+++ png2swf.c   2008-01-24 18:05:07.107357482 +0100
@@ -1066,3 +1066,3 @@
     printf("-V , --version                 Print version information and 
exit\n");
-    printf("-s , --scale <percent>         Scale image to <percent>% size.\n");
+    printf("-s , --scale <percent>         Scale image to <percent>%% 
size.\n");
     printf("\n");
diff -U 1 swfcombine.c swfcombine.c
--- swfcombine.c        2008-01-24 18:05:02.107552020 +0100
+++ swfcombine.c        2008-01-24 18:04:58.107707648 +0100
@@ -287,3 +287,3 @@
     printf("-y , --movey <ypos>            y Adjust position of slave by 
<ypos> pixels\n");
-    printf("-s , --scale <scale>           Adjust size of slave by <scale> 
percent (e.g. 100% = original size)\n");
+    printf("-s , --scale <scale>           Adjust size of slave by <scale> 
percent (e.g. 100%% = original size)\n");
     printf("-r , --rate <fps>              Set movie framerate to <fps> 
(frames/sec)\n");

reply via email to

[Prev in Thread] Current Thread [Next in Thread]