iliaa           Thu Jun 16 18:50:36 2005 EDT

  Modified files:              
    /php-src/ext/gd/libgd       gdxpm.c 
  Log:
  Fixed memory corruption.
  
  
http://cvs.php.net/diff.php/php-src/ext/gd/libgd/gdxpm.c?r1=1.7&r2=1.8&ty=u
Index: php-src/ext/gd/libgd/gdxpm.c
diff -u php-src/ext/gd/libgd/gdxpm.c:1.7 php-src/ext/gd/libgd/gdxpm.c:1.8
--- php-src/ext/gd/libgd/gdxpm.c:1.7    Sun Dec 28 15:11:08 2003
+++ php-src/ext/gd/libgd/gdxpm.c        Thu Jun 16 18:50:32 2005
@@ -46,10 +46,10 @@
                                buf[0] = image.colorTable[i].c_color[1];
                                red = strtol(buf, NULL, 16);
 
-                               buf[0] = image.colorTable[i].c_color[3];
+                               buf[0] = image.colorTable[i].c_color[2];
                                green = strtol(buf, NULL, 16);
 
-                               buf[0] = image.colorTable[i].c_color[5];
+                               buf[0] = image.colorTable[i].c_color[3];
                                blue = strtol(buf, NULL, 16);
                                break;
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to