SF.net SVN: geany: [576] trunk/src/document.c

eht16 at users.sourceforge.net eht16 at xxxxx
Mon Jul 17 19:24:41 UTC 2006


Revision: 576
Author:   eht16
Date:     2006-07-17 12:24:35 -0700 (Mon, 17 Jul 2006)
ViewCVS:  http://svn.sourceforge.net/geany/?rev=576&view=rev

Log Message:
-----------
Use real length of data instead of -1.

Modified Paths:
--------------
    trunk/src/document.c
Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c	2006-07-17 14:17:37 UTC (rev 575)
+++ trunk/src/document.c	2006-07-17 19:24:35 UTC (rev 576)
@@ -611,7 +611,7 @@
 		gchar* conv_file_contents = NULL;
 
 		// try to convert it from UTF-8 to original encoding
-		conv_file_contents = g_convert(data, -1, doc_list[idx].encoding, "UTF-8",
+		conv_file_contents = g_convert(data, len-1, doc_list[idx].encoding, "UTF-8",
 													NULL, NULL, &conv_error);
 
 		if (conv_error != NULL)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Commits mailing list