Kaydet (Commit) 1b0b22a2 authored tarafından Enrico Tröger's avatar Enrico Tröger

Use real length of data instead of -1.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@576 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 6dd61753
......@@ -611,7 +611,7 @@ void document_save_file(gint idx)
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment