<p>In <a href="https://github.com/geany/geany/pull/621#discussion_r40499507">src/document.c</a>:</p>
<pre style='color:#555'>>      {
>            ui_set_statusbar(TRUE, "%s", err->message);
>            g_error_free(err);
>            return FALSE;
>    }
>  
> -  filedata->len = (gsize) st.st_size;
</pre>
<p>Yeah, it was strange. But I actually feel safer to use the length from g_file_get_contents() and g_file_load_contents() - I don't think this should break anything.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/621/files#r40499507">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ-ldlohoJr6ixPN8ZgO2p2Es930vks5o1x1jgaJpZM4FwLm6.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/621/files#r40499507"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>