f-spot r3546 - in trunk: . src/Imaging



Author: sdelcroix
Date: Wed Jan 16 13:09:32 2008
New Revision: 3546
URL: http://svn.gnome.org/viewvc/f-spot?rev=3546&view=rev

Log:
2008-01-16  Stephane Delcroix  <sdelcroix novell com>

	* src/Imaging/Tiff.cs: fix for bgo #356259. thx Lorenzo.


Modified:
   trunk/ChangeLog
   trunk/src/Imaging/Tiff.cs

Modified: trunk/src/Imaging/Tiff.cs
==============================================================================
--- trunk/src/Imaging/Tiff.cs	(original)
+++ trunk/src/Imaging/Tiff.cs	Wed Jan 16 13:09:32 2008
@@ -438,7 +438,7 @@
 			Charset = charset;
 			// for (int i = 0; i < raw_data.Length; i++)
 			//	System.Console.WriteLine ("{0} - \"{1}\"", raw_data [i].ToString ("x"), raw_data [i]);
-			Value = enc.GetString (raw_data, 8, raw_data.Length - 8);
+			Value = enc.GetString (raw_data, 8, raw_data.Length - 8).Trim('\0');
 		}
 
 		public byte [] GetBytes (bool is_little)



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