commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dam...@apache.org
Subject svn commit: r1294484 - /commons/proper/sanselan/trunk/src/main/java/org/apache/commons/sanselan/formats/png/chunks/PngChunkIccp.java
Date Tue, 28 Feb 2012 06:42:53 GMT
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];
 



Mime
View raw message