Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1488469
 поиск   регистрация   авторизация 
 
Группа :: Графика
Пакет: netpbm

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Патч: netpbm-10.25-pnmtopng.patch


--- netpbm-10.25/converter/other/pnmtopng.c.pnmtopng	2004-08-28 04:53:12.000000000 +0200
+++ netpbm-10.25/converter/other/pnmtopng.c	2005-09-16 14:17:47.129390456 +0200
@@ -159,7 +159,7 @@
                       unsigned int * const bestMatchP) {
     
     unsigned int paletteIndex;
-    unsigned int bestIndex;
+    unsigned int bestIndex = 0;
     unsigned int bestMatch;
 
     bestMatch = UINT_MAX;
@@ -1566,7 +1566,7 @@
       /* The color part of the color/alpha palette passed to the PNG
          compressor 
       */
-  unsigned int palette_size;
+  unsigned int palette_size = MAXCOLORS;
 
   gray trans_pnm[MAXCOLORS];
   png_byte  trans[MAXCOLORS];
 
design & coding: Vladimir Lettiev aka crux © 2004-2005