You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by da...@apache.org on 2012/02/28 07:42:53 UTC

svn commit: r1294484 - /commons/proper/sanselan/trunk/src/main/java/org/apache/commons/sanselan/formats/png/chunks/PngChunkIccp.java

Author: damjan
Date: Tue Feb 28 06:42:53 2012
New Revision: 1294484

URL: http://svn.apache.org/viewvc?rev=1294484&view=rev
Log:
Some more FindBugs fixes.


Modified:
    commons/proper/sanselan/trunk/src/main/java/org/apache/commons/sanselan/formats/png/chunks/PngChunkIccp.java

Modified: commons/proper/sanselan/trunk/src/main/java/org/apache/commons/sanselan/formats/png/chunks/PngChunkIccp.java
URL: http://svn.apache.org/viewvc/commons/proper/sanselan/trunk/src/main/java/org/apache/commons/sanselan/formats/png/chunks/PngChunkIccp.java?rev=1294484&r1=1294483&r2=1294484&view=diff
==============================================================================
--- commons/proper/sanselan/trunk/src/main/java/org/apache/commons/sanselan/formats/png/chunks/PngChunkIccp.java (original)
+++ commons/proper/sanselan/trunk/src/main/java/org/apache/commons/sanselan/formats/png/chunks/PngChunkIccp.java Tue Feb 28 06:42:53 2012
@@ -43,7 +43,7 @@ public class PngChunkIccp extends PngChu
                 throw new ImageReadException("PngChunkIccp: No Profile Name");
             byte name_bytes[] = new byte[index];
             System.arraycopy(bytes, 0, name_bytes, 0, index);
-            ProfileName = new String(name_bytes);
+            ProfileName = new String(name_bytes, "ISO-8859-1");
 
             CompressionMethod = bytes[index + 1];